osx - bower install fails giving me EACCES: permission denied error -


i following error below when running npm install -g bower.

node version v6.2.0 npm version 3.9.3 osx yosemite

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

error: eacces: permission denied, open '/users/xxx/.config/configstore/bower-github.json' don't have access file.

at error (native) @ object.fs.opensync (fs.js:634:18) @ object.fs.readfilesync (fs.js:502:33) @ object.create.all.get (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:35:26) @ object.configstore (/usr/local/lib/node_modules/bower/lib/node_modules/configstore/index.js:28:44) @ readcachedconfig (/usr/local/lib/node_modules/bower/lib/config.js:19:23) @ defaultconfig (/usr/local/lib/node_modules/bower/lib/config.js:11:12) @ object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:16:32) @ module._compile (module.js:541:32) @ object.module._extensions..js (module.js:550:10) 

sudo chown -r $user:$group ~/.npm sudo chown -r $user:$group ~/.config 

reference:

github - eacces: permission denied (closed issue)


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo