ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any tim

当安装Nuxt遇到ExperimentalWarning提示时,应检查网络,特别是访问raw.githubusercontent.com的通畅性。通过配置本地host,如在Mac的/etc/hosts或Win的c:/Windows/System32/drivers/etc/hosts文件中添加raw.githubusercontent.com的IP地址,可以解决网络不通的问题。完成host配置后,验证网络并重新开启终端创建项目即可解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装nuxt报错 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)
在这里插入图片描述

解决方法::
 第一步:ping raw.githubusercontent.com 检查是否通
 第二步:如果访问不通,代表是网络不通
 第三步:配置 host,本地解析域名
✓ Mac电脑 host 配置路径: /etc/hosts
✓ Win 电脑 host 配置路由:c:/Windows/System32/drivers/etc/hosts
 第四步:在host文件中新增一行 ,编写如下配置:
✓ 185.199.108.133 raw.githubusercontent.com
 第五步:重新ping域名,如果通了就可以用了
 第六部:重新开一个终端创建项目即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值