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

EACCES: permission denied .config/configstore/bower-github.json #2262

Closed
alexlaw17 opened this issue Apr 20, 2016 · 51 comments
Closed

EACCES: permission denied .config/configstore/bower-github.json #2262

alexlaw17 opened this issue Apr 20, 2016 · 51 comments

Comments

@alexlaw17
Copy link

I keep running into this problem. I uninstalled and reinstalled bower. Nothing is working.

`alexlaw$ bower
/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:54
throw err;
^

Error: EACCES: permission denied, open '/Users/alexlaw/.config/configstore/bower-github.json'
You don't have access to this file.

at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at Object.create.all.get (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
at Object.Configstore (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:28:44)
at readCachedConfig (/usr/local/lib/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12)
at Object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)`
@benmann
Copy link
Member

benmann commented Apr 20, 2016

Did you see this issue: #2260
Does it work for you too?

@alexlaw17
Copy link
Author

I'm still getting the same error, even after
sudo bower install --allow-root
sudo bower install <package>

@alexlaw17
Copy link
Author

fixed it with
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@benmann
Copy link
Member

benmann commented Apr 21, 2016

Strange but still a problem with permissions (as also indicated by the error).
Closing for now.

@benmann benmann closed this as completed Apr 21, 2016
@stevealbertwong
Copy link

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

works for me

@jcanales
Copy link

Worked for me as well

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@ghost
Copy link

ghost commented May 24, 2016

Worked for me :)

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@dpanfili
Copy link

This helped me - thanks!

@Samuel7l
Copy link

Samuel7l commented Jun 7, 2016

Worked for me :)

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@jkoksharova
Copy link

Worked for me too.

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

1 similar comment
@rswetabh
Copy link

rswetabh commented Jun 8, 2016

Worked for me too.

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@RedcoatAsher
Copy link

and me

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@friederjanmoerman
Copy link

Same goes for me

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@Pravin-Parkhi
Copy link

Worked for me as well

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@pankajdaffodil
Copy link

Thanks to all
worked for me .

@revanthreddya
Copy link

Perfect .. thanks @alexlaw17
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@BlackRussian
Copy link

Thanks to all
worked for me .

@emotilla
Copy link

in Ubuntu 14 LTS / DigitalOcean:

sudo chown -R $USER:$GROUP /usr/share/nginx/html/

checkout a good tutorial:
https://www.digitalocean.com/community/tutorials/how-to-manage-front-end-javascript-and-css-dependencies-with-bower-on-ubuntu-14-04

@sashacarvajal94
Copy link

Great!!! Been with this issue for days! Worked for me too!

@ragalindoh
Copy link

Worked for me, thank you @alexlaw17

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@dannymac7
Copy link

Worked for me, thanks!!!

@jorgeants
Copy link

Worked for me too. Thanks @alexlaw17. :)

@appssunset
Copy link

Worked for me as well

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

But I needed to execute the follow too:
sudo chown -R $USER:$GROUP ~/.cache

@cliftonc0613
Copy link

Worked for me as well

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@NikolaVujanic
Copy link

Worked for me :)

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@pixelomo
Copy link

Thanks @alexlaw17

@richardj
Copy link

worked for me as well! :)

fixed it with

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@crrollyson
Copy link

Same here, thanks!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@avastamin
Copy link

Worked! thanks

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@anngelfra
Copy link

Thank you, thank you. I had gone crazy trying to restart and uninstall and then I found these commands and IT WORKS <3

@ayibfanani
Copy link

ayibfanani commented Jul 30, 2016

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

work like charm, thanks

@AnnaUmi
Copy link

AnnaUmi commented Jul 30, 2016

thank you! It works
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@itumoraes
Copy link

itumoraes commented Aug 1, 2016

Finally! It works! Thanks!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@monis01
Copy link

monis01 commented Aug 2, 2016

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

worked for me too, Thanks!

@jimbojw
Copy link

jimbojw commented Aug 2, 2016

The root cause of this issue (and many like it) is npm/write-file-atomic#11.

There is an outstanding patch which will fix this for everyone. We're all waiting for someone from npm to accept it: npm/write-file-atomic#13

@akohli96
Copy link

akohli96 commented Aug 6, 2016

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

Worked for me too!

@eduard-ungureanu
Copy link

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

Worked for me too, on OSX EL Capitan

Thank you so much!

@Paras-avantsoft
Copy link

thanks.. Its working.. on OSX EL Capitan

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@w9ahmed
Copy link

w9ahmed commented Aug 11, 2016

Worked for me!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@Leo-lin214
Copy link

Works for me too !!!!! Thanks !!!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

2 similar comments
@Bernardoow
Copy link

Works for me too !!!!! Thanks !!!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@Sekhno
Copy link

Sekhno commented Aug 18, 2016

Works for me too !!!!! Thanks !!!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@vinayakkulkarni
Copy link

sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config

Worked like a charm! Thanks a ton!

@malloycv
Copy link

Works for me!

Thanks...

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@Philyorkshire
Copy link

Worked for me, I got into this issue running

sudo bower install

by mistake, which messed it all up. But then running

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

fixed it all for me.

@SibuStephen
Copy link

Thank you @alexlaw17 :)

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@Carlos-Augusto
Copy link

It worked like magic

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

@iCristian
Copy link

Thanks
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

Work for me in ionic Framework Great!!

@rahul-jat
Copy link

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

this worked for me as well. :)

@baaronp7
Copy link

@appssunset
Good call...
This is the one I needed:
sudo chown -R $USER:$GROUP ~/.cache

@BlackHeartShelly
Copy link

@alexlaw17 - Thanks man!

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

Worked liked magic.

@bower bower locked and limited conversation to collaborators Sep 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests