N
Nuxt6mo ago
Andy

Clean 'npx nuxi init -t ui' Doesnt work

I just try to start a project and run npx nuxi init -t ui myProject , change in to the directory and run npm install, then i get the wraning:
WARN Module @nuxt/ui is disabled due to incompatibility issues:
- [nuxt] Nuxt version ^3.10.0 is required but currently using 3.4.2
WARN Module @nuxt/ui is disabled due to incompatibility issues:
- [nuxt] Nuxt version ^3.10.0 is required but currently using 3.4.2
` But my package.json reads:
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxt/ui": "^2.17.0",
"nuxt": "^3.12.1"
}
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxt/ui": "^2.17.0",
"nuxt": "^3.12.1"
}
what gives? info output:

Nuxt project info:
------------------------------
- Operating System: Linux
- Node Version: v20.14.0
- Nuxt Version: 3.4.2
- CLI Version: 3.12.0
- Nitro Version: 2.3.3
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, modules
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
------------------------------

Nuxt project info:
------------------------------
- Operating System: Linux
- Node Version: v20.14.0
- Nuxt Version: 3.4.2
- CLI Version: 3.12.0
- Nitro Version: 2.3.3
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, modules
- Runtime Modules: @nuxt/[email protected]
- Build Modules: -
------------------------------
1 Reply
Andy
AndyOP6mo ago
Solved it, i messed up a command earlier, and made the parent directory a project folder. Which created a package.json file in there with the 3.4.2 nuxt. Which this was picking up (even though it wasn't the current directory but a parent one) 🤦‍♂️ That set me back a few hours 😵
Want results from more Discord servers?
Add your server