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.
typing unset HOST on terminal fixed the problem for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With