NuxtN
Nuxt4mo ago
9 replies
Samuelreichoer

How to upgrade nuxt in a monorepo

I have a monorepo with one package-lock.json in the root and a frontend folder where nuxt lives. I want wo use the npx nuxt upgrade frontend --dedupe command but that does not find the package-lock.

ddev npx nuxt upgrade frontend --dedupe
ℹ Package manager: npm 10.8.2 nuxi 10:02:33 AM
ℹ Current Nuxt version: 4.1.1 nuxi 10:02:33 AM

ERROR Unable to find any lock files in /var/www/html/frontend nuxi 10:02:33 AM

ℹ Installing latest stable Nuxt 4 release... nuxi 10:02:33 AM
npm error code ERR_INVALID_ARG_TYPE
npm error The "from" argument must be of type string. Received undefined
npm error A complete log of this run can be found in: /mnt/ddev-global-cache/npm/_logs/2025-09-23T08_02_33_601Z-debug-0.log
Was this page helpful?