Error: Failed to download template from registry: Failed to download https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json: TypeError: fetch failed
错误信息
解决方案
进入windows系统修改hosts文件
C:\Windows\System32\drivers\etc
增加以下代码:
185.199.108.133 raw.githubusercontent.com
cmd 输入 ipconfig/flushdns
刷新配置
重新输入创建命令pnpm dlx nuxi@latest init <project-name>