Error Error: getaddrinfo ENOTFOUND http://localhost:3000 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

System Information
  • Strapi Version: 3.6.3
  • Operating System: Win 10
  • Database: default
  • Node Version: 14.17.0
  • NPM Version: 6.14.13

Fresh install of Strapi results in the error:

[2021-06-15T17:11:18.521Z] error Error: getaddrinfo ENOTFOUND http://localhost:3000
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)

Then cannot access stapi from the browser.

Any ideas please?

verify your host file that it contains a loopback for localhost if not use 127.0.0.1 or add the loopback.