0信息如果以ok结尾
就可以了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
请就此问题向我提出建议。
答案 0 :(得分:0)
如果使用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
我更喜欢您使用 nvm 在ubuntu上安装node.js.您也可以拥有控制节点版本。