簡體   English   中英

當我運行“ npm start”時,節點JS錯誤,也許是KrakenJS?

[英]Node JS error when I run 'npm start', maybe KrakenJS?

當我嘗試使用“ 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是否有約束。

似乎已經在端口8000上監聽了。嘗試運行:

lsof -i:8000

並查看是否列出了該過程。 您也可以檢查http://localhost:8000

EADDRINUSE錯誤告訴您已使用的端口已由另一個程序使用,並且您的應用程序無法使用。 嘗試檢查該端口上的應用程序,或者只是更改端口本身。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM