我刚开始尝试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.
答案 0 :(得分:1)
这是因为您在创建项目时选择了hapi。最新的已发布版本的create-nuxt-app依赖于旧的hapi版本。
此PR中已解决-> https://github.com/nuxt/create-nuxt-app/pull/231,但尚未发布。
您可以像这样通过npx从存储库中使用最新版本的create nuxt应用程序:
npx nuxt/create-nuxt-app