yarn install报错error https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz: Extracting...
问题描述yarn install报错error https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: “EBUSY: resource busy or locked,
问题描述
yarn install报错error https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: “EBUSY: resource busy or locked, open ‘C:\Users\fangxin\AppData\Local\Yarn\Cache\v5\npm-es-abstract-1.17.7-a4de61b2f66989fc7421676c1cb9787573ace54c\node_modules\es-abstract\2019\CompletePropertyDescriptor.js’”
思路:
每次报错的下载的包名都不一样,而且用的是https://registry.yarnpkg.com,怀疑是下载的源有问题,重新设置下 下载源
解决方式:
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm config rm proxy
npm config rm https-proxy
yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
或
npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
重新执行yarn install 成功!
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)