install - Getting a permission error when installing with bower -
everytime try install bower permission error this:
andreass-macbook-air:openmedia andreas$ bower install jquery /usr/local/lib/node_modules/bower/node_modules/configstore/index.js:56 throw err; ^ error: eacces, permission denied '/users/andreas/.config/configstore/bower-github.yml' don't have access file. @ error (native) @ object.fs.opensync (evalmachine.<anonymous>:500:18) @ object.fs.readfilesync (evalmachine.<anonymous>:352:15) @ object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:34:29) @ object.configstore (/usr/local/lib/node_modules/bower/node_modules/configstore/index.js:27:44) @ readcachedconfig (/usr/local/lib/node_modules/bower/lib/config.js:22:23) @ defaultconfig (/usr/local/lib/node_modules/bower/lib/config.js:11:24) @ object.<anonymous> (/usr/local/lib/node_modules/bower/lib/index.js:40:32) @ module._compile (module.js:460:26) @ object.module._extensions..js (module.js:478:10) andreass-macbook-air:openmedia andreas$
i imagine there might easy solution this. first experience bower. in advance.
tried sudo ?
sudo bower install --allow-root sudo bower install jquery
another solution change chown of configstore folder
sudo chown -r andreas:andreas /users/andreas/.config/configstore/ bower init bower install jquery
if there more errors eaccess, expand chown whole home folder
Comments
Post a Comment