【问题标题】:Error starting NPM .. Ghost Blog .. error npm start错误启动 NPM .. Ghost 博客 .. 错误 npm start
【发布时间】:2014-11-29 14:50:37
【问题描述】:

********** 更新********* 这与我将端口更改为 config.js 中的 ipaddress 端口有关,因此我可以在移动设备和桌面上进行测试。知道如何在每次重新启动计算机时不更改端口的情况下做到这一点,以便始终将它们设置为我的 IP 地址进行测试?

**********原始问题**** 启动 npm 运行我的 ghost 博客时出现一个奇怪的错误。它以前发生过,我回到了以前在 github 上的提交。似乎每次我通过不同的方法让它工作,然后停止工作并关闭终端。然后当我重新启动它的另一个问题?也许是github造成的。任何帮助都会很棒。尝试了我知道该怎么做的一切。

这里是错误信息:

cconti77@Charless-iMac ~/sites/_repos/elite-university (get-back-on-it●●●)$ npm start

ghost@0.5.0 开始 /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

【问题讨论】:

标签: node.js github gruntjs npm ghost-blog


【解决方案1】:

您已经将 Ghost 端口用于其他用途。

很可能 ghost 退出了错误的方式,或者您正在使用 forever/pm2 并且进程没有正确关闭。尝试杀死任何 'forever/pm2' 实例,然后重新启动您的机器。为我工作。

要了解会发生什么,我建议您尝试以下操作,看看哪个进程使用了​​ ghost 端口,然后杀死该进程。 http://www.cyberciti.biz/faq/what-process-has-open-linux-port/

而且,你有点跑题了,这应该转移到超级用户。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-10
    • 2021-04-19
    • 2016-02-04
    • 1970-01-01
    • 2016-03-14
    • 2020-09-25
    相关资源
    最近更新 更多