Extracting tar content of undefined failed, the file appears to be corrupt: “EBUSY: resource busy...

Vue项目安装依赖时,报错:

error https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-1.7.8.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "EBUSY: resource busy or locked, open 'C:\\Users\\JING\\AppData\\Local\\Yarn\\Cache\\v6\\npm-ant-design-vue-1.7.8-1abbf86b68a4f5b1000bea0487b8031dc0001661-integrity\\node_modules\\ant-design-vue\\dist\\antd-with-locales.min.js.LICENSE.txt'"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

每次install时报错的包可能不一样,但都是文件占用或者被锁定,点击查看log发现没有是空的,网上也没有一个统一的处理方法,我的处理方法是:

1、删除node_modules,package.lock.json, yarn.lock

2、切换该版本node后,反复执行yarn install

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值