Command line 角cli npm启动失败
我正在为我的第一个angular 2项目使用angular cli,但当我使用Command line 角cli npm启动失败,command-line,angular,angular2-cli,Command Line,Angular,Angular2 Cli,我正在为我的第一个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://lo
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
从问题答案来看,它与另一个使用Angular CLI自动重新加载所需端口49156的进程有关。
可以肯定的是,没有任何东西可以使用您可以请求URL的端口。如果找不到进程,重新启动可以解决问题。我希望您已完成ng init命令,以便安装所有节点模块,能否添加有关运行
npm start
时执行的任务的信息以及angular cli的版本?请参阅@MadhuRanjan:angular cli:0.1.0节点:5.5.0 os:win32 x64以Admin
身份运行CMD
,然后重试。是否确定端口49156可用?您可以尝试访问URL进行检查。您的意思是什么?这个49156端口不是服务端口,我认为,它是一个测试端口。它是用于处理页面重新加载的端口,以便在您修改文件时,cli生成并在准备就绪后触发使用此端口重新加载浏览器。