search

Home  >  Q&A  >  body text

Nuxt 3 local server cannot start, npm run dev does not work

My Nuxt application was originally built using Nuxt2, but recently I encountered some errors while using ESlint and I was forced to upgrade and migrate the application to Nuxt3.

However, when migrating, the application local server is not started using the startup script. Below is an image showing the output when running npm run dev

Nodejs:18^

nuxtjs: 3^

vuejs:2.7^

P粉005105443P粉005105443478 days ago715

reply all(1)I'll reply

  • P粉696891871

    P粉6968918712023-12-11 11:16:10

    Nuxt3 uses Vue3, not Vue2.7.
    Also, when you run npm run dev your application runs fine, so you don't need to run npm nuxi dev separately.

    You can run npx nuxi-edge@latest dev as suggested here.
    This feature works because npx instead of npm, which is completely different. npx Instead of requiring you to install the package locally or globally on your system, it can remotely take the entire code and run it immediately.

    In your case though: use npm run dev and that'll be fine.
    No need to run it through npx/nuxi, that just adds latency.

    reply
    0
  • Cancelreply