[英]ENOTEMPTY directory not empty, rmdir: npm-react-popper-tooltip
I am not a frontend developer but sometimes I have to run some tasks like yarn install && yarn build-dev
.我不是前端开发人员,但有时我必须运行一些任务,例如yarn install && yarn build-dev
。 Currently I am running just yarn install
as shown below but I can not get it to work properly and have no clues on what is wrong or how to fix it:目前我正在运行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".
What I have tried so far?到目前为止我尝试了什么?
rm -rf
使用rm -rf
删除目录内容yarn cache clean
清除纱线缓存yarn cache clean
None of them worked.他们都没有工作。 What could be wrong here?这里有什么问题?
I am using MacOS Catalina 10.15.4 and the command was run from iTerm2 using ZSH.我正在使用 MacOS Catalina 10.15.4,并且该命令是使用 ZSH 从 iTerm2 运行的。
I had the same issue but these options helped me我有同样的问题,但这些选项帮助了我
nodemon
running确保您没有运行nodemon
live-server-extension
in your IDE (like visual studio) running确保您的 IDE(如 Visual Studio)中没有live-server-extension
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.