繁体   English   中英

“Fetch API 是一项实验性功能。此功能可能随时更改”,同时安装 Nuxt3 应用程序

[英]"The Fetch API is an experimental feature. This feature could change at any time" while installing a Nuxt3 app

我尝试使用休闲命令创建新的 nuxt 应用程序

npx nuxi init my-app

成功创建了内部稳定的 Nuxt 3.0 的新应用程序,但我收到了这个烦人的响应

Nuxi 3.0.0-rc.10                                                                                              15:04:22

 ERROR  (node:35527) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

让我感到困惑的是Nuxi 3.0.0-rc.10的版本和我认为它来自节点的错误。

节点 - 18.12.1

npm - 8.19.2

git - 2.38.1

首先,您应该运行Nuxt 3.0.0 (稳定版),而不是 RC。

此外,这是一个警告,因此您可以省略。 特别是因为它与 Node v18 本身相关联,而不是 Vue/Nuxt。 有关如何抑制警告的一些详细信息,请参见此处: https://github.com.netlify/cli/issues/4608#issuecomment-1223696635

至于警告,在完全稳定之前标记实验性功能是很常见的事情。 这是那个的官方来源

我帮助升级了版本节点v18.12.1 -> v19.4.0

我升级到节点18.13.0就足够了

您也可以尝试--no-experimental-fetch标志。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM