inxs Posted June 22, 2017 Share Posted June 22, 2017 Hello guys, today I wanted to update to Babylon 3.0.4-beta and got the error below. I was able to reproduce that it happened since the Update from 3.0.1-beta to 3.0.2-beta! Quote hn8346@DECPC5893 c:\repos\MYPROJECT $ npm install [email protected] [email protected] c:\repos\MYPROJECT `-- [email protected] invalid npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os" :"win32","arch":"x64"}) hn8346@DECPC5893 c:\repos\MYPROJECT $ npm start > [email protected] start c:\repos\MYPROJECT > ng serve --port 3000 --ssl --ssl-key ssl-dev/key.pem --ssl-cert ssl-dev/certificate.pem --hmr -e=hmr Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined at createSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:15457:109) at parseSourceFileWorker (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:15389:26) at Object.parseSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:15338:26) at Object.createSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:15192:29) at WebpackCompilerHost.getSourceFile (c:\repos\MYPROJECT\node_modules\@ngtools\webpack\src\compiler_host.js:210:27) at findSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67909:29) at processSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67840:27) at c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67950:17 at Object.forEach (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:1449:30) at processReferencedFiles (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67948:16) at findSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67933:21) at processImportedModules (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:68056:25) at findSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67937:17) at processImportedModules (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:68056:25) at findSourceFile (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:67937:17) at processImportedModules (c:\repos\MYPROJECT\node_modules\typescript\lib\typescript.js:68056:25) npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! [email protected] start: `ng serve --port 3000 --ssl --ssl-key ssl-dev/key.pem --ssl-cert ssl-dev/certificate.pem --hmr -e=hmr` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script 'ng serve --port 3000 --ssl --ssl-key ssl-dev/key.pem --ssl-cert ssl-dev/certificate.pe m --hmr -e=hmr'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the MYPROJECT package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ng serve --port 3000 --ssl --ssl-key ssl-dev/key.pem --ssl-cert ssl-dev/certificate.pem --hmr -e=hmr npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs MYPROJECT npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls MYPROJECT npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! c:\repos\MYPROJECT\npm-debug.log hn8346@DECPC5893 c:\repos\MYPROJECT $ npm install [email protected] [email protected] c:\repos\MYPROJECT `-- [email protected] invalid npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os" :"win32","arch":"x64"}) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 22, 2017 Share Posted June 22, 2017 How is the folder where babylon.js got installed? Quote Link to comment Share on other sites More sharing options...
inxs Posted June 23, 2017 Author Share Posted June 23, 2017 Im installing Babylon via NPM into my node_modules folder. What do you want to know exactly? edit: Ah I see when I install latest version via npm the files are missing. they are in subfolder dist => preview release Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 23, 2017 Share Posted June 23, 2017 Yep and the npm config define that files must be loaded from preview release Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.