Update Vuetify version

自作多情 提交于 2019-11-29 13:28:16

问题


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 removed from the node_modules folder. How should I install it again? Why does npm install Vuetify not bring it back into node_modules?


回答1:


Run npm info vuetify to lookup for the list of versions that they have.

Install the specific version that you want with the following. I am using the latest vuetify v1.0.0-beta.6 as an example.

Example:

npm install --save vuetify@1.0.0-beta.6

Alternatively, if you prefer yarn

yarn add vuetify@1.0.0-beta.6

You can replace --save with -S flag instead.

yarn requires no flags to save them into dependencies.




回答2:


to update vuetify version you must uninstall your old vuetify here is what i mean

uninstall it first

npm uninstall -S vuetify

then install it again

npm install -S vuetify

if you want to specify the version

npm install -S vuetify@1.0.0

for example.

-S or --save is for dependencies




回答3:


In Mac or Ubuntu:

Just try the command npm install vuetify --save. It will update with latest one.



来源:https://stackoverflow.com/questions/48684083/update-vuetify-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!