执行yarn install这个命令,各种解决方法都尝试过了,一直报如下错误,请大家帮忙看下,谢谢!

执行yarn install这个命令,各种解决方法都尝试过了,一直报如下错误,请大家帮忙看下,谢谢!

npm config set registry https://registry.npmmirror.com/
或
yarn config set registry https://registry.npmmirror.com/
npm install --registry=https://registry.npmmirror.com/
或
yarn install --registry=https://registry.npmmirror.com/
在项目根目录添加
.yarnrc或者.npmrc文件,根据使用的包管理器
// 文件中添加代码
registry https://registry.npmmirror.com/
yarn cache clean
或
npm cache clean