Error: connect ECONNREFUSED 127.0.0.1:8000 on nuxtjs run generate

Thanks for sending that over. Based on the line that reads Entrypoint app = server.js, it looks like this app is trying to build a server when you run npm run generate and that won’t work on Netlify since we only deploy static sites:

It looks like Nuxt has some docs on “gotchas” when deploying to Netlify that may be helpful:

But the TL;DR is that frontend code that relies on server-side code will break because the server will never get set up. If it’s possible for you to make this a static site, we’d be happy to help you get it up and running :muscle:

1 Like