我不是前端开发人员,但有时我必须运行一些任务,例如 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".
到目前为止我尝试过什么?
rm -rf
删除目录的内容yarn cache clean
他们都没有工作。这里可能有什么问题?
我使用的是 MacOS Catalina 10.15.4,命令是使用 ZSH 从 iTerm2 运行的。
最佳答案
我有同样的问题,但这些选项帮助了我
nodemon
运行 live-server-extension
在您的 IDE(如 Visual Studio)中运行 关于node.js - ENOTEMPTY 目录不为空,rmdir : npm-react-popper-tooltip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61104010/