N
Nuxt2y ago
szobi

error with nuxi upgrade using pnpm

Hello, l want to upgrade nuxt to the latest version but with pnpm l have that problem:
pnpm dlx nuxi upgrade
.../share/pnpm/store/v3/tmp/dlx-81284 | +1 +
.../share/pnpm/store/v3/tmp/dlx-81284 | Progress: resolved 2, reused 0, downloaded 1, added 0
Nuxi 3.4.3 1:12:01 PM
1:12:01 PM
ℹ Package Manager: pnpm 8.2.0 1:12:01 PM
ℹ Current nuxt version: 3.3.2 1:12:01 PM
.../share/pnpm/store/v3/tmp/dlx-81284 | Progress: resolved 2, reused 0, downloaded 1, added 1, done 1:12:01 PM
 ERR_PNPM_ADDING_TO_ROOT  Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.

ERROR Command failed: pnpm install -D nuxt
pnpm dlx nuxi upgrade
.../share/pnpm/store/v3/tmp/dlx-81284 | +1 +
.../share/pnpm/store/v3/tmp/dlx-81284 | Progress: resolved 2, reused 0, downloaded 1, added 0
Nuxi 3.4.3 1:12:01 PM
1:12:01 PM
ℹ Package Manager: pnpm 8.2.0 1:12:01 PM
ℹ Current nuxt version: 3.3.2 1:12:01 PM
.../share/pnpm/store/v3/tmp/dlx-81284 | Progress: resolved 2, reused 0, downloaded 1, added 1, done 1:12:01 PM
 ERR_PNPM_ADDING_TO_ROOT  Running this command will add the dependency to the workspace root, which might not be what you want - if you really meant it, make it explicit by running this command again with the -w flag (or --workspace-root). If you don't want to see this warning anymore, you may set the ignore-workspace-root-check setting to true.

ERROR Command failed: pnpm install -D nuxt
any ideas?
npx nuxi upgrade doesnt work too
2 Replies
conner
conner2y ago
Do you have a monorepo?
szobi
szobiOP2y ago
nope, l resolved it by remove pnpm-lock, node modules and manually change nuxt version in package.json
Want results from more Discord servers?
Add your server