【发布时间】:2015-01-27 20:26:46
【问题描述】:
我的本地机器上有工作代码,但在服务器 (Digital Ocean) 上运行相同的代码时遇到问题。我有新的/干净的机器,节点 v0.10.36 没有运行其他服务,没有占用/使用其他端口。
运行npm start 或node bin/www 后,我看到该服务器正在运行,但在我访问该站点后,服务器崩溃并出现以下错误:
root@video-dl:~/server# npm start
> server@0.0.0 start /root/server
> node ./bin/www
GET / 304 129.279 ms - -
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)
npm ERR! server@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the server@0.0.0 start script.
npm ERR! This is most likely a problem with the server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get their info via:
npm ERR! npm owner ls server
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-43-generic
npm ERR! command "/root/.nvm/v0.10.36/bin/node" "/root/.nvm/v0.10.36/bin/npm" "start"
npm ERR! cwd /root/server
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/server/npm-debug.log
npm ERR! not ok code 0
root@video-dl:~/server#
【问题讨论】:
标签: node.js express production-environment digital-ocean