Error: Failed to download template from registry: Failed to download https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json: TypeError: fetch failed

这个问题是因为国内某些限制,科学上网是无法解决问题的,请不要做无谓的冒险。

用vim、vi、nona甚至文本编译器都可以,在底部添加一行代码解析即可。

sudo vim /etc/host
185.199.108.133 raw.githubusercontent.com

添加完后,记得用cat检查一遍。

如果还是报错的话,那就重新再试一次。

Windowns:

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐