【问题标题】:ENOTEMPTY directory not empty, rmdir: npm-react-popper-tooltipENOTEMPTY 目录不为空,rmdir: npm-react-popper-tooltip
【发布时间】: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


    【解决方案1】:

    我遇到了同样的问题,但这些选项帮助了我

    • 确保您没有在该文件夹上打开文件探索
    • 确保您没有运行 nodemon
    • 确保您的 IDE(如 Visual Studio)中没有运行 live-server-extension
    • 确保当前没有任何实时进程正在使用您的应用目录

    【讨论】:

    • 这些要点都不适合我:(
    猜你喜欢
    • 2019-07-24
    • 1970-01-01
    • 1970-01-01
    • 2021-12-27
    • 1970-01-01
    • 2018-03-20
    • 2014-07-20
    • 1970-01-01
    相关资源
    最近更新 更多