After creating a React wp theme app using create-react-wptheme
and when i wanted to start the app using npm start
i got this error
events.js:292
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied 0.0.0.0:8090
at Server.setupListenHandle [as _listen2] (net.js:1301:21)
at listenInCluster (net.js:1366:12)
at Server.listen (net.js:1452:7)
at new WebSocketServer (C:xampphtdocsHeitechgraphicwp-contenthemes
eact_theme
eact-src
ode_moduleswslibwebsocket-server.js:75:20)
at _startNonSslServer (C:xampphtdocsHeitechgraphicwp-contenthemes
eact_theme
eact-src
[email protected]:144:24)
at Object.startServer (C:xampphtdocsHeitechgraphicwp-contenthemes
eact_theme
eact-src
[email protected]:257:17)
at C:xampphtdocsHeitechgraphicwp-contenthemes
eact_theme
eact-src
ode_modules@devloco
eact-scripts-wpthemescriptswpstart.js:217:22
at new Promise (<anonymous>)
at startWatch (C:xampphtdocsHeitechgraphicwp-contenthemes
eact_theme
eact-src
ode_modules@devloco
eact-scripts-wpthemescriptswpstart.js:181:10)
at Timeout._onTimeout (C:xampphtdocsHeitechgraphicwp-contenthemes
eact_theme
eact-src
ode_modules@devloco
eact-scripts-wpthemescriptswpstart.js:110:5)
Emitted 'error' event on WebSocketServer instance at:
at Server.emit (events.js:315:20)
at emitErrorNT (net.js:1345:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
code: 'EACCES',
errno: -4092,
syscall: 'listen',
address: '0.0.0.0',
port: 8090
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `wptheme-scripts start`
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:UsersimbaaAppDataRoaming
pm-cache\_logs2021-01-12T12_09_06_310Z-debug.log
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…