今天打算开始学习 nuxt 框架,结果初始化项目就报错了 🤣👉🤡

nuxt 下载失败

由于 hosts 的原因无法下载 nuxt

前往 C:\Windows\System32\drivers\etc\hosts,然后往里面加 2 条记录

1
2
185.199.108.133 raw.githubusercontent.com
185.199.108.133:443 raw.githubusercontent.com

打开 cmd

1
ipconfig /flushdns

更换 淘宝镜像源

1
nrm use taobao

下载 nuxt

1
npx nuxi@latest init myNuxt

nuxt 成功下载

问题成功解决,