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