sudo npm start
script which starts http server on port 80 throws an error Error: listen EACCES: permission denied 0.0.0.0:80
.
sudo npm start
must work without errors.
import http from 'http';
http.Server().listen(80);
node ./test.mjs
sudo npm start
and see it fails EACCES -13
(access denied).sudo node ./test.mjs
and see it works without errors.Yes, it worked as desired for the previous version of npm (6.x) and NodeJS 14.x.
Same issue occurs
Most helpful comment
Same issue occurs