[英]While starting npm, I'm getting these error
0 info it worked if it ends with ok 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
There is likely additional logging output above. 上面可能还有其他日志记录输出。
enter code here
19 verbose exit [ 1, true
Please suggest me on this issue . 请在这个问题上给我建议 。
If you are using nodejs
command instead of node
command this error can occur if any dependency uses node
command. 如果您使用的是nodejs
命令而不是node
命令,那么如果任何依赖项都使用node
命令,则会发生此错误。
It enters exit status after executing start script : 执行启动脚本后进入退出状态:
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
You can create symlink with that command on terminal: 您可以在终端上使用该命令创建符号链接:
sudo ln -s which nodejs /usr/bin/node
I prefer you install node.js on ubuntu with nvm . 我更喜欢使用nvm在ubuntu上安装node.js。 Also you will be able to have control node versions. 您还将能够拥有控制节点版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.