I have initialized a nuxt project and when I try to run it with npm run dev or yarn dev command it returns this error :
build [================== ] 91%Error: getaddrinfo ENOTFOUND localhost
at errnoException (dns.js:50:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
error Command failed with exit code 1.
Any idea where does it come from ?
add 127.0.0.1 localhost to /etc/hosts