Skip to content

Commit d335c48

Browse files
committed
fix(ensure): use latest version of nuxi
1 parent 3bcf379 commit d335c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/ensure.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export default defineCommand({
2424
// Load Nuxt config
2525
const nuxtConfig = await getNuxtConfig(cwd)
2626
nuxtConfig.modules = nuxtConfig.modules || []
27-
27+
2828
if (!nuxtConfig.modules.includes('@nuxthub/core')) {
2929
consola.info('@nuxthub/core module is not installed, installing...')
30-
await execa('npx', ['nuxi@3.20.0', 'module', 'add', 'hub'], { cwd, stdio: 'inherit' })
30+
await execa('npx', ['nuxi@latest', 'module', 'add', 'hub'], { cwd, stdio: 'inherit' })
3131
}
3232

3333
consola.success('NuxtHub Core module is installed and registered in the project.')

0 commit comments

Comments
 (0)