Angular cli npm启动失败

时间:2016-08-09 13:48:43

标签: command-line angular angular2-cli

我使用angular-cli作为我的第一个有角度的2项目,但是当我使用npm start命令时,它会产生以下错误

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! ng-app@0.0.0 start: `ng server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng-app@0.0.0 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

我检查了我的机器的所有先决条件,因为我有节点v5.5.0,类型为1.3.2,但它仍会产生相同的错误。

我错过了什么?

先谢谢你了!

已编辑: 我今天早上运行npm start命令,它有以下错误:

The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: EPERM: operation not permitted, symlink

1 个答案:

答案 0 :(得分:1)

从问题的答案来看,它与使用端口49156的另一个进程有关,该端口是Angular CLI自动重新加载所需的。 可以肯定的是,您无法使用该端口请求URL http://localhost:49156/。如果您没有找到该过程,重启可以解决问题。

相关问题