Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error: getaddrinfo ENOTFOUND x86_64-apple-darwin13.4.0 while using npm run serve command

I am trying to create a website using node.js and vue.js. So to run the code, I first change the directory to my project directory, in terminal and use npm run serve command. But still I am getting an error. I have even re-downloaded npm libraries using npm install command.
Error is,

vue-cli-service serve INFO Starting development server... 10% building 5/5 modules 0 activeevents.js:174
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:1448:12) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:17)

Any help will be greatly appreciated.

like image 590
Sarang Narkhede Avatar asked Oct 29 '25 01:10

Sarang Narkhede


1 Answers

typing unset HOST on terminal fixed the problem for me.

like image 156
David Kong Avatar answered Oct 30 '25 23:10

David Kong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!