【问题标题】:Nuxt installs with depreciated version packagesNuxt 安装有贬值的版本包
【发布时间】:2019-10-06 22:41:22
【问题描述】:

我是试用 NUXT 的新手,我有一个新手问题,我在网上的任何地方都看不到答案:

为什么 create-nuxt-app 会安装贬值版本的软件包?

我之前尝试过运行 npm update,但没有效果。

> npm update
> npx create-nuxt-app gfgd_payment
npx: installed 379 in 24.753s
...
npm WARN deprecated joi@11.4.0: This version has been deprecated in accordance with the hapi support policy
 support is available for older versions (hapi.im/commercial).
npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy
 support is available for older versions (hapi.im/commercial).
npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy
 support is available for older versions (hapi.im/commercial).
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.

【问题讨论】:

    标签: npm nuxt.js


    【解决方案1】:

    这是因为您在创建项目时选择了 hapi。而最新发布版本的 create-nuxt-app 依赖于旧的 hapi 版本。

    此 PR 已修复 -> https://github.com/nuxt/create-nuxt-app/pull/231 但尚未发布。

    您可以通过 npx 从存储库中使用最新版本的 create nuxt app,如下所示:

    npx nuxt/create-nuxt-app
    

    【讨论】:

      猜你喜欢
      • 2019-09-05
      • 2017-06-07
      • 1970-01-01
      • 2013-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多