EACCES Permission Denied: Problem installing corepack through yarn (Lesson 5: Ethers.js Simple Storage). #514
-
I am currently on 6:48:03 of Patricks videos and I am having a lot of trouble installing the corepack binary. After attempting to use the code:
It gave an EACCES error along with ~10 lines of 'npm: err!' (apologies I don't have this error code anymore). To try and solve this, after having looked on other forums, I tried to manually change the npm's default directory by doing the following:
after doing this I tried to use the same code:
which gave this error:
Hopefully this makes sense and I have included enough information, apologies for not having the original error but if anyone could help that would be great. If it helps, I am on Mac OS |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
@jacobhay2626 did you try |
Beta Was this translation helpful? Give feedback.
-
Incase anyone else ever comes across this issue I thought I would give a description of how I solved it. I found that when trying to do
I would get an EACCES permission denied error appear, and when I tried:
I would get the error seen in my question above. I think i was getting this second error because I was using a node version above 16.10 but Im not sure about that, however for the EACCES permission denied I was able to follow the steps on this link https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally to get around the issue. If you are anything like I am at the time I am writing this I have linked a video on how to create that ~/.profile file and then you can just follow the steps as seen. I'd highly recommend following these steps especially if you are on a Mac OS system as this seems to be a very common issue (there are thousands of questions like this but a lot of the answers require coding that was above my ability level and I think this is the most simple solution you will find). https://www.youtube.com/watch?v=NxpmrLgSGJ8 Hopefully this reaches the right person at some point :) |
Beta Was this translation helpful? Give feedback.
Incase anyone else ever comes across this issue I thought I would give a description of how I solved it. I found that when trying to do
I would get an EACCES permission denied error appear, and when I tried:
I would get the error seen in my question above. I think i was getting this second error because I was using a node version above 16.10 but Im not sure about that, however for the EACCES permission denied I was able to follow the steps on this link
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
to get around the issue. If you are anything like I am at the time I am writing this I have linked a video on …