【发布时间】:2018-07-04 07:38:51
【问题描述】:
作为入门者,我是 node 新手,我已尝试从 https://github.com/ionic-team/ionic-cli/issues/2922 到 npm install ws@3.3.2 --save-dev --save-exact 解决以下问题。
node server.js
Creating new shopping list item
Creating new shopping list item
Creating new shopping list item
events.js:183
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::8080
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at Server.setupListenHandle [as _listen2] (net.js:1351:14)
at listenInCluster (net.js:1392:12)
at Server.listen (net.js:1476:7)
at Function.listen (C:\Users\Rob\WebProjects\npm-script-example\node-shoppin g-list-v1\node_modules\express\lib\application.js:618:24)
at Object.<anonymous> (C:\Users\Rob\WebProjects\npm-script-example\node-shop ping-list-v1\server.js:34:5)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-shopping-list-v1@0.0.1 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-shopping-list-v1@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Rob\AppData\Roaming\npm-cache\_logs\2018-01-25T05_03_00_40 4Z-debug.log
我的repo 在这里...我在 Windows 上的价值。 js.183错误应该如何解决?
【问题讨论】:
-
这修复了此类错误并且效果很好> stackoverflow.com/a/52441411/6665568
标签: javascript node.js debugging compiler-errors