I followed everything (I think exactly) and I get this error on ‘npm run start’
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
webpack-dev-server --port 8080
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dalecarman/.npm/_logs/2020-12-09T15_13_18_033Z-debug.log
Following the README instructions, I cloned it to my folder location, have run the npm install with no issues/warnings but npm start command gives this error
[i have not edited the files that were cloned]
Any ideas what’s going wrong?
NPM start is failing:
PS D:\01_NFT\export-data\NPB Scripts\LEARN\NPB_babylon_raanan-tute> npm start
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Hiranga\AppData\Local\npm-cache\_logs\2022-01-20T03_25_23_000Z-debug.log
UGH. Thanks dude. That bit was a critical instruction missing in the doc, for a noob like me.
Unfortunately, after trawling the web for an hour and nothing, I abandoned and started on another tutorial
But, now I’m stuck on another issue, following code, character by character… FreeCamera and HemisphericLight and even Vector3 is not being recognized by the … thingy … Vue? It’s not getting recognised by Vue? in my Scene.ts file. Any ideas of what is going wrong? Seems like something is not loading…
‘’’ const camera = new FreeCamera(“camera”, new Vector3(0, 1, 0), this.scene);
camera.attachControl();
const hemiLight = new HemisphericLight("hemilight", new Vector3(0, 1, 0), this.scene);
UPDATE: Found solution: so after typing out the object “FreeCamera”, I’m meant to hit Ctrl+Spacebar to Import the object in🤦🏾♂️
Is that bit written somewhere? Please tell me it’s written somewhere. feeling rly stupid 1hr later
Shit happes dude
If you’re beginner in javascript/typescript/npm/etc I suggest you to look at these things first. You will be not able to shoot your weapon if you don’t even know how load it.
Or even better start here and create your first app without npm/webpack and use the most easiest way to create a BabylonJS app/page: