Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn upgrade breaks entire repo with "EACCES: permission denied, rmdir" #8183

Open
BlueRaja opened this issue Jun 10, 2020 · 0 comments
Open

Comments

@BlueRaja
Copy link

BlueRaja commented Jun 10, 2020

Bug description

Running yarn upgrade with any dependency in our repo gives me

error An unexpected error occurred: "EACCES: permission denied, rmdir '/Users/myUserName/git/myRepoName/node_modules/@ember-data/private-build-infra/node_modules/.cache/esm'"

After this, I'm unable to run our app or yarn install ever again. Running yarn install gives the same error as above, and running the app gives dependency errors.

What is the current behavior?
See above

What is the expected behavior?
See above

Steps to Reproduce
See above. It repros 100% of the time in our repo. Our repo has multiple package-directories, each with its own node_modules folder. After running yarn upgrade, none of them work.

I am just running yarn as usual, not with sudo

Workarounds
I tried the following, none of which work:

  • chmod and chown on all node_modules folders
  • Deleting all node_modules folders
  • Revert package.json and yarn.lock (using git)
  • chmod and chown on ~/Library/Caches/Yarn, /usr/local/share/Library/Caches/Yarn, ~/.yarn, ~/.config/yarn/
  • Deleting all of the above folders (careful with the last one, it will delete your global installs)
  • yarn cache clean
  • yarn lerna clean
  • yarn install --check-files
  • yarn install --force
  • Uninstalling yarn completely and reinstalling

The only thing that works is:

  • Delete THE ENTIRE REPO and check it out again from git.

Environment

  • Node Version: 10.20.1
  • Yarn v1 Version: 1.22.4
  • OS and version: OSX 10.13.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant