返回介绍

开场白

开始使用

API

配置

部署

其他

Upgrading

发布于 2024-04-16 21:40:47 字数 1547 浏览 0 评论 0 收藏 0

Upgrading Nuxt.js is quick, but more involved than updating your package.json

Getting Started

  1. Check the release notes for the version you wish to upgrade to see if there are any additional instructions for that particular release.
  2. Update the version specified for the nuxt package in your package.json file.

After this step instructions vary depending upon whether you are using Yarn or NPM. Yarn is the preferred package manager for working with Nuxt as it is the development tool which tests have been written against.

Yarn

  1. remove yarn.lock file
  2. remove node_modules directory
  3. Run the yarn command
  4. After installation has completed and you have run your tests consider upgrading other dependencies as well. The yarn outdated command can be used.

NPM

  1. remove package-lock.json file
  2. remove node_modules directory
  3. Run the npm install command
  4. After installation has completed and you have run your tests consider upgrading other dependencies as well. The npm outdated command can be used.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文