[英]While starting npm, I'm getting these error
0信息,如果一切正常就可以了
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart telcodna@0.0.0
6 info start telcodna@0.0.0
7 verbose unsafe-perm in lifecycle true
8 info telcodna@0.0.0 Failed to exec start script
9 verbose stack Error: telcodna@0.0.0 start: `node ./bin/www`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack at EventEmitter.emit (events.js:110:17)
9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at ChildProcess.emit (events.js:110:17)
9 verbose stack at maybeClose (child_process.js:1015:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid telcodna@0.0.0
11 verbose cwd /usr/local/node-v0.12.7/telcodna
12 error Linux 3.19.0-26-generic
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
14 error node v0.12.7
15 error npm v2.11.3
16 error code ELIFECYCLE
17 error telcodna@0.0.0 start: `node ./bin/www`
17 error Exit status 1
18 error Failed at the telcodna@0.0.0 start script 'node ./bin/www'.
18 error This is most likely a problem with the telcodna package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node ./bin/www
18 error You can get their info via:
18 error npm owner ls telcodna
18 error
上面可能還有其他日志記錄輸出。
enter code here
19 verbose exit [ 1, true
請在這個問題上給我建議 。
如果您使用的是nodejs
命令而不是node
命令,那么如果任何依賴項都使用node
命令,則會發生此錯誤。
執行啟動腳本后進入退出狀態:
8 info telcodna@0.0.0 Failed to exec start script
9 verbose stack Error: telcodna@0.0.0 start: `node ./bin/www`
9 verbose stack Exit status 1
您可以在終端上使用該命令創建符號鏈接:
sudo ln -s which nodejs /usr/bin/node
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.