You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a pnpm monorepo including a Nuxt3 application with the following structure:
packages/
app/
package.json <-- nuxt is defined here
pnpm-lock.yaml
If I run pnpm --filter=app exec nuxt upgrade --dedupe, the Nuxt CLI cannot locate the lock file.
$ pnpm --filter=app exec nuxt upgrade --dedupe
ℹ Package manager: pnpm 9.3.0
ℹ Current Nuxt version: 3.17.5
ERROR Unable to find any lock files in /.../packages/app
My guess is that the command should traverse up to locate the correct lock file. Looking at the source code, I wonder if this might even be an issue with the https://github.com/unjs/nypm package 🤔
I’m also running into this in a monorepo, even with npm.
Setup
Nuxt: 4.3.1
npm: 10.9.4
Command run from app dir: npx nuxt upgrade --dedupe
Repo layout:
apps/web/package.json
apps/web/package-lock.json
no JS lockfile at monorepo root
What happens
From apps/web/, nuxt upgrade prints:
Unable to find any lock files in ...
It looks like lockfile detection is checking the workspace root instead of the current app directory. In my case the lockfile exists in the app directory, so the message is misleading.
Activity
samiashi commentedon Feb 17, 2026
I’m also running into this in a monorepo, even with npm.
Setup
4.3.110.9.4npx nuxt upgrade --dedupeapps/web/package.jsonapps/web/package-lock.jsonWhat happens
From
apps/web/,nuxt upgradeprints:Unable to find any lock files in ...It looks like lockfile detection is checking the workspace root instead of the current app directory. In my case the lockfile exists in the app directory, so the message is misleading.
danielroe commentedon Mar 10, 2026
I can't reproduce this.
can you provide a sample repository? 🙏
samiashi commentedon Mar 11, 2026
@danielroe I put together a minimal reproduction repo here:
https://github.com/samiashi/nuxt-upgrade-lockfile-repro
It mirrors the nested repo shape where I hit this:
fe/be/fe/package-lock.jsonexistsRepro steps:
cd fe npm install npx nuxt upgrade --dedupe