Reputation: 33
I have npm 6.4.1 and node v10.15.3 on my windows so i tried installing Express Generator followed all the steps on the website and i am getting this when i try running 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
Upvotes: 1
Views: 3762
Reputation: 3253
You need to add your App name and port into Windows Firewall settings.
Upvotes: 2
Reputation: 1193
You are not allowed to run 3000 port on your system. Checkout the open ports on your system
netstat -an | find /i
See which are open and use those to run your app. I feel you wont be able have access and would need to run this command as administrator.
Upvotes: 0
Reputation: 497
The error says that running on that port requires "Elevated Privileges". Try running the command as Administrator if on Windows & with "sudo" if on linux.
Upvotes: -1