Fails to run
M00ker opened this issue · 6 comments
Hi
I followed you instructions to run the project and I get multiple "error TS2300: Duplicate identifier" errors when I run "npm run build".
Running "npm run deploy" gives me the following errors:
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "deploy"
npm ERR! node v4.6.0
npm ERR! npm v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! angular2-express-mongo@1.0.0 deploy: concurrent --kill-others "gulp watch" "node ./dist/server/bin/www
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular2-express-mongo@1.0.0 deploy script 'concurrent --kill-others "gulp watch" "node ./dist/server/bin/www'.
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 angular2-express-mongo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! concurrent --kill-others "gulp watch" "node ./dist/server/bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-express-mongo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-express-mongo
npm ERR! There is likely additional logging output above.
Screenshots attached.
Thanks for your help.
This is because of the new version of node 6.7.0, everything worked well in 6.6.0. I can see a lot of people having this issue recently.
ok, thanks for the update. I'll use Node 6.6.0 until there is a resolution.
All the best,
Peter
@M00ker The error list above and your screenshot shows:
npm ERR! node v4.6.0
so it wouldn't have been due to node 6.7.0 as @thomasmoldovan suggested, although there could be other problems. But, the angular.io website says: "Our examples require node v5.x.x or higher and npm 3.x.x or higher"
Every error line refers to @types/core-js, so it seems that is @types/core-js fault
run:
"npm uninstall @types/core-js --save-dev"
and everything will run ok (tested)
thanks thomas for the fix.


