N
Nuxt4d ago
yashwp

How do I upgrade Vue? Is there a command for that or need to manually do npm install

How do I upgrade Vue 3.4.21 to 3.4.31? Is there a command for that or need to maually do npm install for vue package? I've used npm up vue that is not working
9 Replies
Zampa
Zampa4d ago
Just change the version in package.json and rerun npm i
yashwp
yashwp4d ago
There will be lot of dependent package. They might not work then right?
Zampa
Zampa4d ago
When you run it if there are any dependencies that are mismatched it will tell you. should be fine
yashwp
yashwp4d ago
Ahh! Manual update only.
Zampa
Zampa4d ago
well, if you have the vue cli installed, it's just vue upgrade https://cli.vuejs.org/guide/installation
Zampa
Zampa4d ago
but yeah it's easier to just manually update it
yashwp
yashwp4d ago
No I don't. Nevermind, I'll do manually. Vue is now big enough to handle this task
Zampa
Zampa4d ago
For what it's worth, Nuxt does have an upgrade command: https://nuxt.com/docs/api/commands/upgrade
Nuxt
nuxi upgrade · Nuxt Commands
The upgrade command upgrades Nuxt 3 to the latest version.
yashwp
yashwp4d ago
Yea Nuxt has it.