[英]"The Fetch API is an experimental feature. This feature could change at any time" while installing a Nuxt3 app
I try to creat new nuxt app using fallowing command我尝试使用休闲命令创建新的 nuxt 应用程序
npx nuxi init my-app
successfully creating new app with Nuxt 3.0 stable inside but i get this annoying response成功创建了内部稳定的 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)
What confuses me is the version of Nuxi 3.0.0-rc.10 and the Error I belive it comes from node.让我感到困惑的是Nuxi 3.0.0-rc.10的版本和我认为它来自节点的错误。
node - 18.12.1节点 - 18.12.1
npm - 8.19.2 npm - 8.19.2
git - 2.38.1 git - 2.38.1
First off, you should be running Nuxt 3.0.0
(stable version), not the RC.首先,您应该运行
Nuxt 3.0.0
(稳定版),而不是 RC。
Also, this is a warning hence something that you can omit.此外,这是一个警告,因此您可以省略。 Especially because it is tied to Node v18 itself and not Vue/Nuxt.
特别是因为它与 Node v18 本身相关联,而不是 Vue/Nuxt。 Some details on how to suppress the warning are available here: https://github.com.netlify/cli/issues/4608#issuecomment-1223696635
有关如何抑制警告的一些详细信息,请参见此处: https://github.com.netlify/cli/issues/4608#issuecomment-1223696635
As for the warning, it is a common thing to have experimental features marked until they are fully stable.至于警告,在完全稳定之前标记实验性功能是很常见的事情。 Here is the official source for that one.
这是那个的官方来源。
I helped upgrade the version node v18.12.1 -> v19.4.0
我帮助升级了版本节点
v18.12.1 -> v19.4.0
It was enough for me to upgrade to node 18.13.0
我升级到节点
18.13.0
就足够了
You can also try --no-experimental-fetch
flag.您也可以尝试
--no-experimental-fetch
标志。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.