create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

"events.js:183 error" after "npm start"

Open malyushkin opened this issue 8 years ago • 5 comments

Is this a bug report?

Yes

Did you try recovering your dependencies?

npm --version
5.6.0

Environment

Environment:
  OS:  macOS 10.14.1
  Node:  8.9.4
  Yarn:  Not Found
  npm:  5.6.0
  Watchman:  4.9.0
  Xcode:  Not Found
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.6.3 => 16.6.3
  react-dom: ^16.6.3 => 16.6.3
  react-scripts: 2.1.1 => 2.1.1

Steps to Reproduce

  1. npm i -g create-react-app
  2. create-react-app my-app
  3. npm start

Expected Behavior

Starting the application in the browser

Actual Behavior


events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: getaddrinfo ENOTFOUND x86_64-apple-darwin13.4.0
    at errnoException (dns.js:50:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)

Unfortunately, this solution does not helps me.

malyushkin avatar Nov 20 '18 14:11 malyushkin

almost the same thing happends to me when i run yarn start and it worked a few days ago, events.js:167 throw er; // Unhandled 'error' event

10Nopalitos avatar Nov 22 '18 16:11 10Nopalitos

almost the same thing happends to me when i run yarn start and it worked a few days ago, events.js:167 throw er; // Unhandled 'error' event

As I see, the exact line (183/167/...) depends on version of Node, because I had yours while I was testing different approaches.

malyushkin avatar Nov 23 '18 09:11 malyushkin

I fixed this by typing unset HOST in terminal.

davidsaccavino avatar Nov 26 '18 19:11 davidsaccavino

I fixed this by typing unset HOST in terminal.

That works for me. Thank you!

malyushkin avatar Nov 26 '18 20:11 malyushkin

@davidsaccavino, do you know how works unset HOST ?

JABES123 avatar Dec 07 '18 06:12 JABES123