Reputation: 7004
I'm using angular-cli for my first angular 2 project, but it generates the error below when I use npm start
command
Running without elevated rights. Running Ember CLI "as Administrator" increases performance significantly.
See ember-cli.com/user-guide/#windows for details.
Livereload failed on http://localhost:49156. It is either in use or you do not have permission.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v5.5.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `ng server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'ng server'.
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 ng-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng server
npm ERR! You can get their info via:
npm ERR! npm owner ls ng-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! ...\ng_app\npm-debug.log
I check all my prerequise for my machine because I have, node v5.5.0, typings 1.3.2, but it still generates the same error.
What I missed?
Thank you in advanced!
Edited :
I run the npm start
command this morning, and it has the following error:
The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: EPERM: operation not permitted, symlink
Upvotes: 3
Views: 2030
Reputation: 12243
From the question answer, it was related to another process using the port 49156 which is required by Angular CLI for auto reloading. To be sure, there is nothing using the port you can request the URL http://localhost:49156/. If you do not find the process, a restart can solve the problem.
Upvotes: 1