node. js USES port 80 in Linux to report an error
Because the server USES CentOS8, the local environment is changed to Linux to facilitate development and deployment.
FATAL listen EACCES: Permission denied 0.0.0.0:80
the at Server setupListenHandle [as _listen2] (net. Js: 1296:21)
the at listenInCluster (net. Js: 1361:12)
the at doListen (net. Js: 1498:7)
the at processTicksAndRejections (internal/process/task_queues. Js: 85:21)
✖ Nuxt Fatal Error
Error: listen EACCES: permission denied 0.0.0.0:80
NPM ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xxx dev:nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xxx.
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! /home/xxx/.npm/_logs/xxx-debug.log
solution
initially suspected that port 80 was occupied, but when I checked the port information, I found that port 80 was not occupied, so I should have no permission to use port 80. The simple solution is to add sudo
.
Replace NPM run dev
code>sudo NPM run dev
Read More:
- Events.js:167 throw er appears when starting node service under linux; // Unhandled ‘error’ event solution
- Install and uninstall under Linux system Node.js
- Solution to the problem that listen TCP 0.0.0.0:3306: bind: address already in use port is occupied in Linux centos7
- Linux environment setup – Update https://apt.repos.intel.com report errors
- Port 4200 is already in use.Use ‘-port’ to specify a different port error Reasons
- ERROR in ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js!./src/css/spec
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in u
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7
- Gt Report Error ssh:connect to host github.com port 22
- Error 2052/2053 when installing node.js in win
- The solution of using Autowired annotation to report errors in IntelliJ idea
- Use less.js to verify and report an error in the Vue file of vscode
- Through PID (process identification) to find the port (port) occupied applications, to solve the problem of port occupied
- Node start – create a server listening port.
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- Using JSON to report errors
- [uboot]uboot 2019.04 port errors
- Debugging with chrome Node.js
- about jQuery.js The solution to always reporting errors