N
Nuxt9mo ago
kematia

Upgrading Nuxt gradually

Ciao! we are working with a pretty sizeable application and we lagged behind with updates, as we are currently at version 3.5.4 If we run npx nuxi upgrade we have too much stuff breaking at once (unit tests, imports, playwright, etc) so we would like to upgrade a version or two at a time, but I don't see anything in the cli docs to handle that. For example, can I just run npm install [email protected]? Thanks!
3 Replies
owljackob
owljackob9mo ago
What about setting the Nuxt's version directly through = in the package.json and then npm install instead of npm update? You can handle then specific versions.
Cue
Cue9mo ago
Yes, you can upgrade incrementally. However, to mimic nuxi upgrade, you just need to nuke node_modules and package lock file each time to ensure underlying dependencies are updated adequately. I would also increment minor versions. Patch versions don’t really do much other than often fix problems that you might encounter in another patch version.
kematia
kematiaOP9mo ago
Ok great, we'll give it a shot! Thanks!
Want results from more Discord servers?
Add your server