Open MirrorXu opened 2 years ago
Normally, to run a program that bind to port less than 1024, it needs to be run as sudo.
https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html
Normally, to run a program that bind to port less than 1024, it needs to be run as sudo.
https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html
Even using sudo doesn't help. The problematic nodejs version is 15 or higher.
"sudo npm run" is changed between npm v6 and v7.
But the following commands can be used.
sudo node_modules/.bin/vue-cli-service serve
But the following commands can be used.
sudo node_modules/.bin/vue-cli-service serve
really worked! Thank you for sharing it.
Version
4.5.15
Reproduction link
github.com/MirrorXu/vue-demo
Environment info
Steps to reproduce
create vue.config.js and specify the devServer
sudo npm run serve
the vue App not serve at port 80 , but 1024 , Terninal info: App running at:
What is expected?
i expected specify the port under 1024 at npm@8+
What is actually happening?
can not specify the port under 1024 at npm@8+ macos
The problem is at npm@8.1.2 。 when i use npm@6 , It becomes normal 。