-
Notifications
You must be signed in to change notification settings - Fork 2.7k
yarn install fails with permission denied error #5095
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
Comments
I tried it out on OSX but don't get an error
It does look like #961 but that should have been fixed a long time ago. From a quick search it looks like archives should be extracted with permissions set:
so I'm not sure why yours would be different. If you are willing to debug into it some, I think that the extraction of the archive should happen in
or
search for |
reinstalling of yarn helped. So this issue can be closed. |
^ Classic case of "it works for me" still open in my mind. |
I solved this by updating yarn version from 0.x to 1.x 😅 |
Had same issue on macOS, solved it by reinstalling yarn rm -rf /Users/mota/Library/Caches/Yarn/
brew uninstall yarn
brew update
brew install yarn |
I have the same problem, but with:
it worked perfectly! |
After messing around with chmods for 2 hours, this one just worked like a charm. Thanks. |
Do you want to request a feature or report a bug?
This is a bug report. Maybe related to #961
What is the current behavior?
yarn install
fails while installing some packages with permission denied error.ll
in the src folder gives following result:Deleting this folder befor
yarn install
doesn't help.If the current behavior is a bug, please provide the steps to reproduce.
Create a folder with the following package.json:
Run
yarn
What is the expected behavior?
The operation should succeed (as it does with
npm install
),Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: