我在Windows上安装了npm 6.4.1和node v10.15.3,因此我尝试按照网站上的所有步骤安装Express Generator,并在尝试运行npm start时得到此提示

> myapp@0.0.0 start C:\Users\ONLINEWIS-PROG-03\Documents\JS Basics\myapp
> node ./bin/www

Port 3000 requires elevated privileges
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myapp@0.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myapp@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ONLINEWIS-PROG-03\AppData\Roaming\npm-cache\_logs\2019-04-08T16_55_03_162Z-debug.log

最佳答案

您需要将应用名称和端口添加到Windows防火墙设置中。

关于javascript - 无法在 express 发电机上启动npm,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55578742/

10-17 00:24