javascript - 运行 'npm start' 时出现 Node JS 错误,可能是 KrakenJS?

标签 javascript node.js npm kraken.js

当我尝试使用“npm start”运行我的应用程序时,它会抛出此错误。我已经更新了 Node 和 NPM,但错误仍然引发此错误。我想知道他们是否与 KrakenJS 有问题?

提前致谢

> node server.js

Mon, 11 Apr 2016 13:41:08 GMT uncaughtException listen EADDRINUSE :::8000
Error: listen EADDRINUSE :::8000
    at Object.exports._errnoException (util.js:890:11)
    at exports._exceptionWithHostPort (util.js:913:20)
    at Server.__dirname.Server.Server._listen2 (net.js:1230:14)
    at listen (net.js:1266:10)
    at Server.__dirname.Server.Server.listen (net.js:1362:5)
    at Object.<anonymous> (/Users/.../server.js:14:8)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! testapp@0.1.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the testapp@0.1.0 start script 'node server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the testapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs testapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls testapp
npm ERR! There is likely additional logging output above.

最佳答案

看起来好像您正在尝试在端口 8000 上运行服务器,而某些东西已经在使用它。

Mon, 11 Apr 2016 13:41:08 GMT uncaughtException listen EADDRINUSE :::8000
Error: listen EADDRINUSE :::8000

尝试为您的服务器选择不同的端口或运行一些诊断程序以查看您是否在 8000 上绑定(bind)了某些东西。

关于javascript - 运行 'npm start' 时出现 Node JS 错误,可能是 KrakenJS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36550586/

相关文章:

javascript - Node.js 异步/Promise 与 JIMP 的解释?

javascript - 管理 Node Websockets topic-subscriber Map 的最佳方式是什么?

node.js - 使用 nano 插入用户时,CouchDB 抛出 '404 missing' 错误

node.js - 如何在 TypeScript 项目中使用 js-cookie?

node.js - 我应该硬编码对我的node_modules 文件夹的引用吗?

javascript - 将 Fineuploader 与 ASP.NET 网络表单一起使用。对严格模式调用函数的访问被审查

javascript - 如何找到未显示的元素的高度

node.js - 如何利用 npm 审计?

javascript - Google 表格中的 Google Apps 脚本是否有类似悬停的触发器?

javascript - 创建堆积预算与实际图表