为了避免依赖包版本发生变化,存在不可预知的问题,通过修改yarn.lock
文件解决
在yarn.lock
文件中全局替换https://registry.yarnpkg.com
为https://registry.npmmirror.com
,https://registry.nlark.com
为https://registry.npmmirror.com
,然后重新安装
参考自:
https://blog.youkuaiyun.com/weixin_42132439/article/details/127861199
https://juejin.cn/post/7447103424361037860