yarn 安装依赖时报错: error An unexpected error occurred: https://registry.yarnpkg.com“

运行命令,把资源地址设置成 npm 淘宝源:
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
本文介绍了解决Yarn安装依赖时报错的方法,通过将资源地址设置为npm淘宝源来避免错误的发生。
yarn 安装依赖时报错: error An unexpected error occurred: https://registry.yarnpkg.com“

运行命令,把资源地址设置成 npm 淘宝源:
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
6949
4483
3万+

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