3

我在我的第一个 angular 2 项目中使用 angular-cli,但是当我使用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
4

1 回答 1

1

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

于 2016-08-10T14:14:33.233 回答