运行npm run start不成功

yibinruan 发布于 2016/04/29 09:03
阅读 4K+
收藏 0
npm

安装cnpm私库,npm依赖关系包已经安装完成,但运行npm run start启动服务时会出现如下报错:

npm-debug.log显示如下:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/node/bin/npm', 'run', 'start' ]
2 info using npm@3.8.7
3 info using node@v0.12.13
4 verbose stack Error: ENOENT, open '/usr/local/node/bin/package.json'
4 verbose stack     at Error (native)
5 verbose cwd /usr/local/node/bin
6 error Linux 2.6.32-431.el6.x86_64
7 error argv "node" "/usr/local/node/bin/npm" "run" "start"
8 error node v0.12.13
9 error npm  v3.8.7
10 error path /usr/local/node/bin/package.json
11 error code ENOENT
12 error errno -2
13 error enoent ENOENT, open '/usr/local/node/bin/package.json'
14 error enoent ENOENT, open '/usr/local/node/bin/package.json'
14 error enoent This is most likely not a problem with npm itself
14 error enoent and is related to npm not being able to find a file.
15 verbose exit [ -2, true ]

加载中
0
一如当初
一如当初

package里指定了脚本没?

npm start

0
y
yibinruan

package里指定了脚本没?

这个应该怎么指定;

返回顶部
顶部