安装nuxt3

bash 复制代码
npx nuxi@latest init projectname

报错:

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

解决办法:

hosts文件填加以下内容

bash 复制代码
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
2606:50c0:8000::154 raw.githubusercontent.com
2606:50c0:8001::154 raw.githubusercontent.com
2606:50c0:8002::154 raw.githubusercontent.com
2606:50c0:8003::154 raw.githubusercontent.com
相关推荐
VaJoy14 小时前
给到夯!前端工具链新标杆 Vite Plus 初探
前端·vite
小彭努力中16 小时前
191.Vue3 + OpenLayers 实战:可控化版权信息(Attribution)详解与完整示例
前端·javascript·vue.js·#地图开发·#cesium
奇舞精选16 小时前
用去年 github 最火的 n8n 快速实现自动化推送工具
前端·agent
奇舞精选16 小时前
实践:如何为智能体推理引入外部决策步骤
前端·agent
无限大616 小时前
AI实战02:一个万能提示词模板,搞定90%的文案/设计/分析需求
前端·后端
朝阳58117 小时前
控制 Nuxt 页面的渲染模式:客户端 vs 服务端渲染
前端·javascript
发现一只大呆瓜17 小时前
Vue-Vue2与Vue3核心差异与进化
前端·vue.js·面试
sunny_17 小时前
熬夜通宵读完 VitePlus 全部源码,我后悔没早点看
前端·前端框架·前端工程化
发现一只大呆瓜17 小时前
Vue2:数组/对象操作避坑大全
前端·vue.js·面试
发现一只大呆瓜17 小时前
Vue3:ref 与 reactive 超全对比
前端·vue.js·面试