To update the Vuetify component library in my project, I changed the version in package.json
and ran the command npm install
. Vuetify is now remove
Since npm version 5 (part of Node.js version 8), you can simply run
npm update vuetify
to update the package in node_modules
and version in package.json
/package.json.lock
to the latest wanted version. Wanted version is the latest safe version that can be selected according to the constraints of semantic versioning and the ^
or ~
prefix in package.json
.
To see what is the available wanted version, run
npm outdated
If you want to update both Vuetify and other packages to the latest major version (you rarely want this as Vuetify major versions are not necessarily backwards-compatible), run
npx npm-check-updates -u
npm install
See this excellent article by Carl Rippon for details.