简体   繁体   中英

Npm run dev doesnt start up nuxt 3 local server

My Nuxt app was initially built with Nuxt2, but recently I had some errors with ESlint and I was forced to upgrade and migrate the application to Nuxt3.
However on migrating, the application local server doesn't startup with the startup script. Below is an image showing the output when running npm run dev

在此处输入图像描述

Nodejs: 18^
nuxtjs: 3^
vuejs: 2.7^

Nuxt3 is using Vue3, not Vue2.7.
Also, your app is fine when you run npm run dev so you don't need to run npm nuxi dev per-se.

You could run npx nuxi-edge@latest dev as suggested here .
That one works thanks to npx not npm , which is quite different. npx doesn't need you to have the package installed locally or globally on the system, it can fetch the whole code remotely and run it on the fly straight away.

Still, in your case: use npm run dev , it's all good that way.
No need to run it through npx/nuxi, that just adds delay.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM