更新 Vuetify 版本 [英] Update Vuetify version

查看:83
本文介绍了更新 Vuetify 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了更新我项目中的 Vuetify 组件库,我更改了 package.json 中的版本并运行命令 npm install.Vuetify 现在已从 node_modules 文件夹中删除.我应该如何重新安装它?为什么 npm install Vuetify 没有把它带回 node_modules?

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?

推荐答案

运行 npm info vuetify 以查找他们拥有的版本列表.

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

使用以下安装您想要的特定版本.我以最新的 vuetify v1.0.0-beta.6 为例.

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

示例:

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

或者,如果您更喜欢 yarn

yarn add vuetify@1.0.0-beta.6

您可以将 --save 替换为 -S 标志.

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

yarn 不需要标记即可将它们保存到 dependencies 中.

yarn requires no flags to save them into dependencies.

这篇关于更新 Vuetify 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆