【问题标题】:How to update Nuxt.js to the latest version [closed]如何将 Nuxt.js 更新到最新版本 [关闭]
【发布时间】:2019-04-23 22:38:41
【问题描述】:

我在我的项目中使用 Nuxt.js 1.2,但我想将其更新到最新版本。怎么做?更新版本时需要考虑什么?

【问题讨论】:

标签: javascript vue.js nuxt.js


【解决方案1】:

只需运行:yarn upgrade nuxt@^2.3.2

here所述:

请注意,升级 Nuxt.js 只需更改内部版本 package.json 还不够。请使用 yarn upgrade 或 npm upgrade 所以 node_modules 的最终目录结构是正确的。在 问题清理node_modulesyarn.lock/package-lock.json.

【讨论】:

  • 另一种简单的方法:yarn upgrade nuxt --latest
  • 显然对于 npm 用户,只需更改 yarn -> npm
猜你喜欢
  • 1970-01-01
  • 2013-10-21
  • 1970-01-01
  • 2016-03-06
  • 2013-07-12
  • 2014-05-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-15
相关资源
最近更新 更多