events.js:174 throw er; //未处理的“错误”事件

时间:2020-07-04 08:07:28

标签: reactjs visual-studio-code operating-system

我的creat-react-app有问题

当我运行npm start时,将显示错误消息:

      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND x86_64-apple-darwin13.4.0
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
Emitted 'error' event at:
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1457:12)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ppmtool@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ppmtool@0.1.0 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!     /Users/robert/.npm/_logs/2020-07-04T07_59_45_211Z-debug.log

我继续删除,但又遇到了相同的问题

0 个答案:

没有答案