Node.js Express.js 4.8.0失败

Node.js Express.js 4.8.0失败,node.js,express,Node.js,Express,刚刚安装了express 4.8.0。 通过express newAp创建应用程序,然后cd newAp和npm安装 当我发布npm启动或节点时。/bin/www或DEBUG=newAp。/bin/www 应用程序尚未启动。它给出的错误如下所示: > newAp@0.0.0 start c:\Users\Somenath\newAp > node ./bin/www events.js:72 throw er; // Unhandled 'error' event

刚刚安装了express 4.8.0。 通过express newAp创建应用程序,然后cd newAp和npm安装 当我发布npm启动或节点时。/bin/www或DEBUG=newAp。/bin/www

应用程序尚未启动。它给出的错误如下所示:

> newAp@0.0.0 start c:\Users\Somenath\newAp
> node ./bin/www


events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1135:5)
    at Function.app.listen (c:\Users\Somenath\newAp\node_modules\express\lib\app
lication.js:546:24)
    at Object.<anonymous> (c:\Users\Somenath\newAp\bin\www:7:18)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
任何帮助都将不胜感激


有没有办法回到Express 3.x?

您有另一个程序使用同一端口运行。您可以杀死该程序,也可以像这样运行express


PORT=3001 npm start

您是否仍有另一个节点实例在后台运行?某些内容仍然绑定到您尝试侦听的端口。此外,您还可以通过编辑bin/www第5行来更改默认端口。