yarn install报错error https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.7.tgz: Extracting…

  • Post author:
  • Post category:其他




问题描述

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 成功!



版权声明:本文为LiQiangQiangIT原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。