-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm start 时无法正常启动 #92
Comments
先 On Thu, Jan 1, 2015 at 9:14 AM, shenzhenjia [email protected]
|
我也碰到这个问题了 运行环境是win7 |
感觉像是 npm install 没有完全成功。 我改了下再试试,不用 |
不确定是什么导致的,上面修改的还是有问题
'.' 不是内部或外部命令,也不是可运行的程序 npm ERR! [email protected] start: |
这个 npm script 脚本用的是 bash ,不支持 window,你可以拆开来自己运行。 |
window 有 bat 可以跑的。https://github.com/afc163/elasticsearch-package/tree/master/bin |
拆开运行确实是ok的 有空试试你下面的bat脚本 多谢 |
按修改后的脚本运行,还是出错
module.js:338 npm ERR! Darwin 14.0.0 npm ERR! Please include the following file with any support request: |
@shenzhenjia 好像是 |
[PM2] Spawning PM2 daemon
[PM2] Success
[PM2] Process app.js launched
┌──────────┬────┬──────┬─────┬────────┬───────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │
├──────────┼────┼──────┼─────┼────────┼───────────┼────────┼─────────────┼──────────┤
│ spmjs │ 0 │ fork │ 626 │ online │ 0 │ 0s │ 20.512 MB │ disabled │
└──────────┴────┴──────┴─────┴────────┴───────────┴────────┴─────────────┴──────────┘
Use
pm2 info <id|name>
to get more details about an appsh: ./node_modules/.bin/pm2: No such file or directory
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.11.14
npm ERR! npm v2.1.14
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start:
pm2 start app.js --name spmjs && ./node_modules/.bin/pm2 start ./node_modules/elasticsearch-package/bin/elasticsearch -x --interpreter bash
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] start script 'pm2 start app.js --name spmjs && ./node_modules/.bin/pm2 start ./node_modules/elasticsearch-package/bin/elasticsearch -x --interpreter bash'.
npm ERR! This is most likely a problem with the spmjs.io package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! pm2 start app.js --name spmjs && ./node_modules/.bin/pm2 start ./node_modules/elasticsearch-package/bin/elasticsearch -x --interpreter bash
npm ERR! You can get their info via:
npm ERR! npm owner ls spmjs.io
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/edward/workspace/projects/spmjs.io/npm-debug.log
The text was updated successfully, but these errors were encountered: