Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
497 views
in Technique[技术] by (71.8m points)

node.js - Error while starting a react wp theme app

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...