**********更新********* 这与我在config.js中将我的端口更改为我的ipaddress的端口有关,因此我可以在移动设备和桌面上进行测试。我知道如何在不改变端口的情况下每次重新启动计算机时都能这样做,以便它们始终设置为我的ipaddress进行测试吗?
**********原始问题**** 我在启动npm运行我的鬼博客时遇到一个奇怪的错误。它发生在之前,我回到了之前的github提交。似乎每次我通过不同的方法使用它然后停止工作并关闭终端。然后当我重新启动它的另一个问题?也许github正在造成它。任何帮助都会很棒。试过我所知道的一切。
这是错误消息:
cconti77@Charless-iMac ~/sites/_repos/elite-university (get-back-on-it●●●)$ npm start
ghost@0.5.0 start / Users / cconti77 / Sites / _repos / elite-university 节点索引
Migrations: Up to date at version 003
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1023:19)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at process._tickFromSpinner (node.js:394:15)
npm ERR! ghost@0.5.0 start: `node index`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the ghost@0.5.0 start script.
npm ERR! This is most likely a problem with the ghost package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index
npm ERR! You can get their info via:
npm ERR! npm owner ls ghost
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/cconti77/Sites/_repos/elite-university
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/cconti77/Sites/_repos/elite-university/npm-debug.log
npm ERR! not ok code 0
答案 0 :(得分:0)
您已经在使用Ghost端口了解其他内容。
很可能幽灵以错误的方式退出,或者你永远使用/ pm2并且该过程没有正确关闭。尝试杀死任何' forever / pm2'实例,然后重启您的机器。为我工作。
要了解会发生什么,我建议您尝试以下操作以查看哪个进程使用ghost端口,然后终止进程。 http://www.cyberciti.biz/faq/what-process-has-open-linux-port/
而且,你有点偏离主题,这应该转移到SuperUser。