mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxi): add nuxt3
to dev deps in upgrade command (#2143)
This commit is contained in:
parent
955fa364fa
commit
f3082ca601
@ -44,7 +44,7 @@ export default defineNuxtCommand({
|
||||
execSync(`${packageManager} install`, { stdio: 'inherit' })
|
||||
} else {
|
||||
consola.info('Upgrading nuxt...')
|
||||
execSync(`${packageManager} ${packageManager === 'yarn' ? 'add' : 'install'} nuxt3@latest`, { stdio: 'inherit' })
|
||||
execSync(`${packageManager} ${packageManager === 'yarn' ? 'add' : 'install'} -D nuxt3@latest`, { stdio: 'inherit' })
|
||||
}
|
||||
|
||||
const upgradedVersion = await getNuxtVersion(rootDir)
|
||||
|
Loading…
Reference in New Issue
Block a user