当前位置:

yarn安装报错【There appears to be trouble with your network connection. Retrying...】


检查配置文件:yarn config list

更新配置文件:

yarn config set registry https://registry.npm.taobao.org

npm config set registry https://registry.npm.taobao.org

npm config set disturl https://npm.taobao.org/dist

npm config set https://registry.npmjs.org/

然后  出现:error An unexpected error occurred

执行:yarn config set strict-ssl false -g


解决,可以更新yarn了,附:

删除无用配置项:

yarn config delete 配置项名

npm config delete 配置项名

光锥极客  2024-09-04  阅读量:403