【发布时间】:2020-07-21 01:27:39
【问题描述】:
我不是前端开发人员,但有时我必须运行一些任务,例如yarn install && yarn build-dev。目前我只运行yarn install,如下所示,但我无法让它正常工作,也不知道什么是错误的或如何修复它:
▶ yarn install
yarn install v1.22.4
[1/4] ???? Resolving packages...
[2/4] ???? Fetching packages...
error An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir '/Users/reynierpm/Library/Caches/Yarn/v6/npm-react-popper-tooltip-2.10.1-e10875f31916297c694d64a677d6f8fa0a48b4d1-integrity/node_modules/react-popper-tooltip'".
info If you think this is a bug, please open a bug report with the information provided in "/Users/reynierpm/dev/docker/web/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
warning mini-css-extract-plugin@0.4.2: Invalid bin field for "mini-css-extract-plugin".
到目前为止我尝试了什么?
- Google 获取一些解决方案
- 一些 SO 发布解决方案
- 使用
rm -rf删除目录内容 - 清除纱线缓存
yarn cache clean
他们都没有工作。这里有什么问题?
我使用的是 MacOS Catalina 10.15.4,该命令是使用 ZSH 从 iTerm2 运行的。
【问题讨论】:
标签: node.js npm webpack yarnpkg