【发布时间】: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
【问题讨论】:
-
这个问题似乎离题了,因为它与编程无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Apple Stack Exchange 会是一个更好的提问地点。
标签: node.js github gruntjs npm ghost-blog