Closed
Description
Hey, weird error, I was just doing a fresh install on a server and bower installed fine however when trying to run "bower install" it gave me the EACCESS permission denied error for the ".config/configstore/insight-bower.yml" file.
I never installed bower or npm for that matter via root, this was the first time on this machine that "bower install" was running. When trying to chown the "insight-bower.yml" file it told me it didnt exist, which is true. I resolved it by chown the whole .config folder.
This is with bower v1.3.12. Maybe this is some real bug for bower or just some weird config error on the machine but thought I might flag it up, keep up the good work :)
Activity
sheerun commentedon Jan 5, 2015
Maybe your
HOME
wasn't set properly? Can you give a way to reproduce?ad3002 commentedon Jan 6, 2015
I got similar error today with new installation on Ubuntu with sudo npm install bower -g command, expected config folder was not created in bower installation
ad3002 commentedon Jan 6, 2015
Before I've installed mc and it creates .config folder by root so bower simply doesn't have access to it. Fixed with chown.
deepakkaithwas commentedon Jan 7, 2015
I just fixed it in Windows.
I have done three things, which one have fixed it I am not sure.
it worked for me like charm.
I have been trying to fix this since many days.
VictorBargains commentedon Feb 11, 2015
I just got a similar issue trying a first time deployment to openshift. pushed repo, ran npm install, then ran bower install. I am guessing this is because root is the owner of the home directory I get dropped in by the
rhc ssh
command which connects me to the openshift shell. It's trying to mkdirSync ~/.config. Is there a way around this without being able to chown?Error: EACCES, permission denied '/var/lib/openshift/54db291bfcf933fd3e000039/.config'
at Object.fs.mkdirSync (fs.js:642:18)
at sync (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/node_modules/mkdirp/index.js:70:13)
at Function.sync (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/node_modules/mkdirp/index.js:76:24)
at Object.create.all.get (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/node_modules/insight/node_modules/configstore/index.js:41:13)
at Object.Configstore (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/node_modules/insight/node_modules/configstore/index.js:27:44)
at new Insight (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/node_modules/insight/lib/index.js:26:34)
at ensureInsight (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/lib/util/analytics.js:26:19)
at Object.setup (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/lib/util/analytics.js:43:9)
at Object. (/var/lib/openshift/54db291bfcf933fd3e000039/app-root/runtime/repo/node_modules/bower/bin/bower:72:11)
at Module._compile (module.js:456:26)
benhalverson commentedon Apr 8, 2015
I reinstalled my node setup using this git repo https://github.com/brock/node-reinstall
I was able to install bower -g without sudo. When I run this bash script I am also getting this error.
Error: EACCES, permission denied '/Users/benhalverson/.config/configstore/bower-github.yml'
You don't have access to this file.
https://github.com/chyld/apollo/blob/master/setup.sh
skolsuper commentedon May 10, 2015
I am also having this problem. Ubuntu 14.04, almost fresh VPS, cannot get bower to do anything at all. Even
bower cache clean
throws the same error. Also, I tried deleting bower-github.yml, and now I can't get it back again even after reinstalling bower and then npm+bower. Howeverbower ...
still throws permission denied rather than file not found.Angel-Gonzalez commentedon May 10, 2015
I had the same error on Elementary Os Freya. I fix it changing ownner in both .config and .cache directories with this command
sudo chown -R [user name] ~/.config
andsudo chown -R [user name] ~/.cache
hope works for othersskolsuper commentedon May 11, 2015
Thanks Angel-Gonzalez, that worked for me too.
chasevida commentedon May 14, 2015
@Angel-Gonzalez this resolved it for me too - thanks!
22 remaining items
ghost commentedon Aug 9, 2015
@Angel-Gonzalez thanks !
meni432 commentedon Aug 9, 2015
@Angel-Gonzalez Thanks!
drigoteixeira commentedon Oct 21, 2015
@Angel-Gonzalez, Your tip was really helpful! Thank you!
tim545 commentedon Oct 28, 2015
@Angel-Gonzalez solved! Thanks! I was lost on that one
bsienn-khan commentedon Oct 31, 2015
seriously this was annoying. Thanks @Angel-Gonzalez
please fix this already
lmorenojr commentedon Nov 1, 2015
@Angel-Gonzalez thanks that resolved it, appreciate it
ryananthonydrake commentedon Nov 3, 2015
Thanks @Angel-Gonzalez Worked for me too!
thomasrstegelmann commentedon Nov 10, 2015
@Angel-Gonzalez Thanks a lot!
bilalcorbacioglu commentedon Nov 19, 2015
@Angel-Gonzalez Thanks !
daton89 commentedon Nov 20, 2015
@Angel-Gonzalez Thanks works on oxs snow too!
RealWeeks commentedon Nov 21, 2015
@Angel-Gonzalez Thanks worked Yosemite.
faceleg commentedon Nov 22, 2015
Locking to prevent any more "me too" messages cluttering up the volunteer's review queue.