简体   繁体   English

ENOTEMPTY 目录不为空,rmdir: npm-react-popper-tooltip

[英]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?到目前为止我尝试了什么?

  • Google for some solutions谷歌一些解决方案
  • a few SO post solutions一些SO发布解决方案
  • Delete the content of the directory using rm -rf使用rm -rf删除目录内容
  • Clear yarn cache 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我有同样的问题,但这些选项帮助了我

  • Make sure you don't have file explore open on that folder确保您没有在该文件夹上打开文件探索
  • Make sure you don't have nodemon running确保您没有运行nodemon
  • Make sure you don't have live-server-extension in your IDE (like visual studio) running确保您的 IDE(如 Visual Studio)中没有live-server-extension
  • Make sure you don't have any live process that is currently using your app directory确保您没有任何当前正在使用您的应用程序目录的实时进程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:ENOTEMPTY:目录不为空,rmdir - Error: ENOTEMPTY: directory not empty, rmdir 在角度CLI应用程序中安装express时出现“ENOTEMPTY:directory not empty,rmdir ...”错误。 - getting “ENOTEMPTY: directory not empty, rmdir …” error on installing express in angular CLI app. ENOTEMPTY:目录不为空,重命名 '' -> '' (JavaScript + NPM + Ubuntu 服务器) - ENOTEMPTY: directory not empty, rename '' -> '' (JavaScript + NPM + Ubuntu server) 如何解决纱线构建错误 - 错误:ENOTEMPTY:目录不为空,rmdir '/frontend/out/node_modules/cacache/node_modules/.bin' - How to solve yarn build error - Error: ENOTEMPTY: directory not empty, rmdir '/frontend/out/node_modules/cacache/node_modules/.bin' 流星错误:ENOTEMPTY:目录不为空 - Meteor Error: ENOTEMPTY: directory not empty 流星:错误:ENOTEMPTY:部署到Modulus时目录不为空 - Meteor: Error: ENOTEMPTY: directory not empty when deploying to Modulus 从一组gulp任务运行时,NPM del抛出ENOTEMPTY错误 - NPM del throws ENOTEMPTY error when running from a set of gulp tasks node.js rmdir 是递归的吗? 它可以在非空目录上工作吗? - Is node.js rmdir recursive ? Will it work on non empty directories? NPM安装到〜/ .npm目录 - NPM installing to ~/.npm directory Npm install删除npm目录 - Npm install removes npm directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM