1

I do bower install css-circle-menu

and I got this error :

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

Error: EACCES: permission denied, open '/Users/james/.config/configstore/bower-github.json'

Tried sudo bower install css-circle-menu, it doesn't work too. Also tried to install bower global again, got the same error.

Rachel
  • 31
  • 5
  • Related: [nearly every other question using the search `"EACCES: permission denied" code:"throw"`](http://stackoverflow.com/search?q=%22EACCES%3A+permission+denied%22+code%3A%22throw%22). Maybe there’s something useful for you. – Sebastian Simon Jul 04 '16 at 02:05
  • 1
    Possible duplicate of [EACCES Error with Bower install?](http://stackoverflow.com/questions/22257726/eacces-error-with-bower-install) – NooBskie Jul 04 '16 at 02:11

2 Answers2

4

The problem is caused by insufficient user permissions. You can avoid the issue invoking a sudo command but I suggest you to try to fixing your .config folder permissions using:

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

Bower and NPM commands shouldn't be run with sudo.

Jonathan Argentiero
  • 5,687
  • 8
  • 29
  • 34
  • Cheers.Was having recurring issues with bower installs. `sudo bower install --allow root` worked at first but then it started complaining also. Didn't really like the idea of `sudo`ing all the time either so this command did the trick.Now `bower install` simply works! – mikeym Aug 19 '16 at 17:27
1

Try this: sudo bower install css-circle-menu --allow-root