question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getaddrinfo ENOTFOUND when starting GUI with `vue ui`

See original GitHub issue

Version

3.9.2

Environment info

  System:
    OS: macOS High Sierra 10.13.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
  Binaries:
    Node: 11.15.0 - ~/.nvm/versions/node/v11.15.0/bin/node
    Yarn: Not Found
    npm: 6.9.2 - ~/.nvm/versions/node/v11.15.0/bin/npm
  Browsers:
    Chrome: 75.0.3770.100
    Firefox: 67.0.4
    Safari: 12.1.1
  npmGlobalPackages:
    @vue/cli: 3.9.2

Steps to reproduce

vue ui produces this error:

Renes-MacBook-Pro:03 – Der Konfigurator reneeschke$ vue ui
🚀  Starting GUI...
events.js:170
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:58:26)
Emitted 'error' event at:
    at Server.emit (events.js:193:13)
    at Server.EventEmitter.emit (domain.js:481:20)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1443:12)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:58:17)

I tried it with node v10.7.0 and npm v6.9.0 and still the same error. Macbook reboot and reinstalling @vue/cli also didn’t work. I don’t know what changed– I had it working a few days back.

What is expected?

Working vue ui 😦

What is actually happening?

It’s not!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
sodateacommented, Jul 10, 2019

Please make sure the following line exists (and not commented out) in your /etc/hosts

127.0.0.1	localhost
0reactions
ShashankM3-hexawarecommented, Jul 17, 2019

@sodatea , API which i was using is a local VM API, I was trying to hit that API from AWS server, That was the error. Thanks for your response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run vue project getaddrinfo ENOTFOUND localhost error
Check if there is already any service running on that host and port. In my case, I was trying to run it on...
Read more >
Node.js Error Message “getaddrinfo ENOTFOUND localhost ...
Today I want to go over a quick fix to an error that had me very confused when I first started my program...
Read more >
activeevents.js:173_WenZheSpace的博客 - CSDN博客
vue 运行时报错:一般是运行vue 项目或node时报这种错误,但解决办法都一样C:\Users\Administrator\Desktop\code>vue ui Starting GUI.
Read more >
[Solved]-How can I safely change listeners?-Java - appsloveworld.com
It all depends on whether you are creating new labels or not, and whether you want to dispose of Fonts immediately or only...
Read more >
Vue CLIのGUIによるツールでプロジェクトを生成したい - Teratail
環境OS: macOS Catalina 10.15.7 Vue CLI -> v4.5.11 プラウザ:Google Chrome ### やっ ... could not be established, cause=getaddrinfo ENOTFOUND proxyserver\".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found