Nuxt 3 local server cannot start, npm run dev does not work
P粉005105443
P粉005105443 2023-12-10 18:03:24
0
1
638

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粉005105443
P粉005105443

reply all(1)
P粉696891871

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template