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
EACCES: permission denied on yarn install #1806
Comments
try |
OK sudo did it. Is |
It's always better to run it without |
@rogervila does not working for me. I previous have .git in the-project-path, that command changed everything in my repo. So, It get worst. |
But |
@rogervila seems like few more people have same problem. yarn install works with sudo. But npm install works on same folder without sudo. |
@ziolau @matart15 Could you share your |
for me i created brand new ignite project and tried to add react-native-camera.
|
I tried it in an empty folder, and had no problems with:
As I can see, the error happens to you when it tries to access to Maybe the error occurs after yarn and is related to ignite. Did you try to run yarn in an empty folder with only the |
These are Android build artfacts related to react-native. If you use a react-native package that requires Google Play Services, it looks like this issue comes up. You need to actually run Gradle for these to be downloaded (which is of course after Yarn runs). The artifacts have a permission of This is my initial read of the issue. I haven't looked into it any further. |
Ran into this issue myself with a React Native app as well. Running |
i tried |
@rogervila / @ziolau opening up your project folder to everyone is not a very advisable solution. |
Is probably the way to go. This makes your unix user ( |
After installing I'll have to remove privileges later but I'll cross that bridge when I get there. |
Getting this on ubuntu 16.04 in vagrant, yarn is trying to access my ~/.config/ folder which is set to Not sure why it's locked down so tight, would rather open that though, than run yarn with sudo. |
Just as a note to others - following @NexusInk's advice got me in all sorts of trouble. Change the permissions of all the files in a project broke all sorts of things including git. Not sure what a better solution to this bug is though. |
what @cdimitroulas is referring to is "file mode" in .git. Git tracks file permissions by default so you'll need to disable this or just commit the file permissions change to your repo, which may or may not be relevant |
This method works mine. (MacOSX (Mojave))
|
I get this after running The only solution I've found is to delete the entire repo and check it out again from git. |
If you are using mac, you can try with homebrew. |
Problem is: Trying solution from here: yarnpkg/yarn#1806
How are these 'solutions' acceptable solutions? |
This may be a little late, but here's an observation made recently after inheriting an old early 2011 macbook pro. I'm a web dev, so I installed the node stack, but because this beaut is an old girl now, I can't rely on brew too heavily as I can only go up to macOS 10.13 now. Mostly manual installs. So after doing so, noticed my Just note the file it's trying to access in the error message (mine was Hope this helps someone out there! |
Had similar issue, so I installed yarn globally and then ran sudo yarn, and it did the trick. |
In my case it was sufficient to remove the node_modules & yarn.lock and run 'yarn', the permission change or sudo wasn't necessary. Could the problem have been caused because I moved the files on folder up after the initial installation? |
remove all yarn files; |
In my case the reason was that I was running yarn via |
|
It works for me too. thank you. |
1 similar comment
It works for me too. thank you. |
|
In my case, I've deleted node_modules and yarn.lock and run yarn add [libToInstall] and it works. Thank you |
Easy generic way to get most permissions fixed: You could also just rm -rf your local copy and re-clone. If you do the permissions fix, once you have files at 644 and directories at 755, you can make adjustments as needed for your project. |
I have the same problem on MacOS, it's weird that This fix seems to work: |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
react native project
yarn install
gives me this errorI tried chmod 777 the file. but error is same even there is 777 permission
Please mention your node.js, yarn and operating system version.
npm -v : 3.10.9
node -v : v7.1.0
The text was updated successfully, but these errors were encountered: