0
我正在學習AngularJS。爲此,我遵循tutorial並檢出了示例代碼(git clone --depth=14 https://github.com/angular/angular-phonecat.git
)。然後,我跑了npm install
和npm install -g bower
。如何診斷「npm start」的失敗?
最後,我試圖用npm start
啓動web服務器。
它沒有工作,我得到了下面的錯誤輸出:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec prestart script
9 error [email protected] prestart: `npm install`
9 error Exit status 7
10 error Failed at the [email protected] prestart script.
10 error This is most likely a problem with the angular-phonecat package,
10 error not with npm itself.
10 error Tell the author that this fails on your system:
10 error npm install
10 error You can get their info via:
10 error npm owner ls angular-phonecat
10 error There is likely additional logging output above.
11 error System Windows_NT 6.1.7601
12 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
13 error cwd D:\dev\js-learning\angular-phonecat
14 error node -v v0.10.33
15 error npm -v 1.4.28
16 error code ELIFECYCLE
17 verbose exit [ 1, true ]
我怎樣才能解決呢?