yarn安装包报 An unexpected error occurred: "https://registry.npmjs.org/@wangeditor%2feditor-for-vue: connect ETIMEDOUT 104.16.1.35:443"错误
1、这是因为网络不好导致的下载依赖包请求超时报错,更改下载地址即可
解决:步骤1.请求地址设置成淘宝源
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
步骤2.对node-sass镜像源进行设置
yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
文章讲述了在使用Yarn安装包时遇到的连接超时错误,原因是网络问题。提供了三种解决方法:设置npm和yarn的淘宝源,以及针对node-sass镜像源的配置,确保重新下载依赖包以解决问题。
3209

被折叠的 条评论
为什么被折叠?



