这种异常一般都是网络原因,网上其他方法都是让设置国内镜像,但新版的yarn配置改成了npmRegistryServer
,导致以前的yarn config set registry xxx
不行了,会报错说找不到registry
配置。得换成yarn config set npmRegistryServer xxx
比如阿里镜像用yarn config set npmRegistryServer https://registry.npmmirror.com
yarn install RequestError等异常解决方法(yarn 4.0以上版本)
最新推荐文章于 2024-07-29 16:31:05 发布