我正在使用angular-cli进行我的第一个angular 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
我检查了我的机器上的所有先决条件,因为我有node v5.5.0、typings 1.3.2,但仍然会生成相同的错误。
我错过了什么?
非常感谢!
编辑:今天早上我运行npm start
命令时,出现了以下错误:
The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: EPERM: operation not permitted, symlink
{"tinylr":"Welcome","version":"0.2.1"}
。 根据@eg16的说法,我以管理员身份运行命令,并且端口4200
可用,但是当我在开发工具的控制台中检查时,会出现zone.js:323 Error: Error: XHR error (404 Not Found) loading http://localhost:4200/system-config.js(…)
的错误,那么我该如何解决呢? - Radonirina Maminiaina