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
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.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.
Ok great, we'll give it a shot! Thanks!