Update Vuetify version

后端 未结 4 1918
悲哀的现实
悲哀的现实 2020-12-31 12:53

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

相关标签:
4条回答
  • 2020-12-31 13:36

    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.

    0 讨论(0)
  • 2020-12-31 13:37

    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

    0 讨论(0)
  • 2020-12-31 13:41

    In Mac or Ubuntu:

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

    0 讨论(0)
  • 2020-12-31 13:47

    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.

    0 讨论(0)
提交回复
热议问题