我在Windows上安装了npm 6.4.1和node v10.15.3,因此我尝试按照网站上的所有步骤安装Express Generator,并在尝试运行npm start时得到此提示
> [email protected] 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! [email protected] start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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/