Error: listen EACCES: permission denied 0.0.0.0:80

error when starting dev server:
Error: listen EACCES: permission denied 0.0.0.0:80
    at Server.setupListenHandle [as _listen2] (node:net:1855:21)
    at listenInCluster (node:net:1920:12)
    at Server.listen (node:net:2008:7)
    at httpServer.listen (file:///data/home/template/data/product/zh/gaomishengchan/scyy-ui/node_modules/vite/dist/node/chunks/dep-51c4f80a.js:61895:20)

解决方法

npm run dev -- --port 7878

加个端口即可

你可能感兴趣的:(服务器,前端,运维)