查看yarn用的什么镜像源
bash
yarn config get registry
查看具体的信息
bash
yarn config list
设置淘宝的最新镜像源,yarn和npm都要设置最新的淘宝镜像源,不然还是报错
bash
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
设置最新的淘宝镜像源后,你再查看yarn的镜像源
bash
yarn config get registry
设置成功了

然后你就可以用yarn安装第三方插件了,不会报错
