-
Notifications
You must be signed in to change notification settings - Fork 24
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
npm install failing (Error: EACCES: permission denied, mkdir) #21
Comments
Having the same issue on macOS Sierra. I manually ran
I'm running the latest version of npm (v4.5.0) and I also ran the install with |
I probably won't be able to reproduce this because I don't have access to a mac. If anyone could debug this I would be grateful. In the mean time there are other ways of installing:
|
It worked for me by not installing globally. I just took off the |
Not just Macs, I get the same issue on Linux:
|
I got the same issue on Ubuntu
|
@samueller After I created the 2 directories manually, I had to change the owner of the 2nd directory with:
Then it WORKS! BTW, afterwards you need to change ownership back to you for all files (-R) otherwise it won't run:
Note: change |
On Ubuntu 16.04 I am getting the same thing when using
However, yarn works well
|
Same problem, and also on ubuntu. The workaround with yarn @dbulic mentioned works, though. |
This PR #33 should fix this issue once released. |
Muchos appreciated. |
Released as v1.2.0 If someone affected with this could test it out it would be appreciated 👍 |
v1.4.0 still causing an issue on my Mac:
|
@cscalfani Thank you!!!!!! |
same for "just elm"
/related: npm/npm#17268 |
Thank you! 🤗 I'll update the Readme to use that as a fallback. |
This is permission issue on the folder. For some reason subfolder permissions were changed from |
@maksimluzik I am having this issue trying to build an android sdk. I wrote what you said and it's still causing an issue. Can someone please give me a tip as I'm after spending 3 days at this and it's killing me oO. My shell is:
ERROR:
The file:
|
@SmiffyKMc that looks weird issue indeed. Not sure whats up with that. If you are 100% sure that the path to that file is correct |
@maksimluzik ah shame, was hoping you'd know since your last comment was my issue. Sorry, my main issue is that I'm trying to build an Ionic Android App through Jenkins. I can build it perfectly fine on the terminal but Jenkins seems to be having issues with permissions. I made owner and group of the files from the folder that jenkins needs access to but it still gives a permission denied. Maybe if I did all this on a Docker image? |
I had the same kind of problem, with denied permissions. I'm using Linux Mint and, even with 'sudo', the permission to create folders was denied. |
Still does not work. I'm using most recent Kali Linux. |
@noformnocontent Your voodoo worked. You're a genius. |
@noformnocontent Thank you! |
@dbulic Thank you, it works on Solus as well. |
try this to install package... sudo npm install --unsafe-perm=true --allow-root |
@deepakchaula Proven it's working!! Thanks! |
Nah, now it's " (Why is installation a problem? It's been done since more than 20 years now. ☠☠☠!!) |
Yup, had this problem on Debian. Fixed like so:
Afterwards I was able to run |
@deepakchaula Thank you it worked! |
@deepakchaula why sudo npm install --unsafe-perm=true --allow-root ? It does, however, there are no more questions |
if you install a package that you have the package name, you run 'sudo npm install package_name --unsafe-perm=true --allow-root'. If you don't know which package you missing, just run 'sudo npm install --unsafe-perm=true --allow-root' in your project folder that has node_modules. |
@deepakchaula. Works fine. Thanks |
sd |
@deepakchaula Thanks for command |
If you have no root access, |
Thank you @deepakchaula! |
sudo npm i -g elm-github-install |
Still getting this issue on my mac
|
@freddy_daniel, try adding unsafe-perm=true --allow-root to the install command if you're sure that what you are installing is safe. |
I have fixed this issue by |
Worked for me, Thank you! |
@ghost's solution works for me, even whilst installing corvova-res globally. Thanks, Not all hero's wear capes. |
|
@deepakchaula You're a real life saver! Thank you! |
How does changing the owner of the directory make it work? Solution worked for me but this is strange! |
Add more param like that
|
This solution works well for me, thanks @deepakchaula 👍 |
To install globally, without need --unsafe-perm=true --allow-root in Elementary Os (ubuntu based) this work for me
Now you can install any package globally
|
I have deleted the 'node_modules/' folder and install npm package again. |
It works ! thnx ! |
Thanks.. It worked for me on Ubuntu 19.10. |
This solved my problem on Ubuntu 20.04 with non-root user |
Hi,
I am having trouble installing this package globally. I run the following:
and get the following:
Thanks,
Alex
The text was updated successfully, but these errors were encountered: