Skip to content

insight-bower.yml with EACCESS error by default #1607

Closed
@ulpian

Description

@ulpian

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

sheerun commented on Jan 5, 2015

@sheerun
Contributor

Maybe your HOME wasn't set properly? Can you give a way to reproduce?

ad3002

ad3002 commented on Jan 6, 2015

@ad3002

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

Error: EACCES, permission denied '/home/username/.config/configstore/insight-bower.yml'
You don't have access to this file.

    at Object.fs.openSync (evalmachine.<anonymous>:432:18)
    at Object.fs.readFileSync (evalmachine.<anonymous>:286:15)
    at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/index.js:34:29)
    at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/index.js:27:44)
    at new Insight (/usr/local/lib/node_modules/bower/node_modules/insight/lib/index.js:26:34)
    at ensureInsight (/usr/local/lib/node_modules/bower/lib/util/analytics.js:26:19)
    at Object.setup (/usr/local/lib/node_modules/bower/lib/util/analytics.js:43:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:72:11)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
ad3002

ad3002 commented on Jan 6, 2015

@ad3002

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

deepakkaithwas commented on Jan 7, 2015

@deepakkaithwas

I just fixed it in Windows.
I have done three things, which one have fixed it I am not sure.

  1. Run cmd prompt as administrator.
  2. takeown /? this command is equivalent to chown (linux) but for windows.
  3. cacls -cacls /E /T /G :F
  4. simply go in $USER /Users/calvin/.config/configstore/ and make files unhidden.

it worked for me like charm.
I have been trying to fix this since many days.

VictorBargains

VictorBargains commented on Feb 11, 2015

@VictorBargains

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?


bower install

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

benhalverson commented on Apr 8, 2015

@benhalverson

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.

at Object.fs.openSync (evalmachine.<anonymous>:439:18)
at Object.fs.readFileSync (evalmachine.<anonymous>:290:15)
at Object.create.all.get (/Users/benhalverson/.nvm/v0.10.38/lib/node_modules/bower/node_modules/configstore/index.js:34:29)
at Object.Configstore (/Users/benhalverson/.nvm/v0.10.38/lib/node_modules/bower/node_modules/configstore/index.js:27:44)
at readCachedConfig (/Users/benhalverson/.nvm/v0.10.38/lib/node_modules/bower/lib/config.js:22:23)
at defaultConfig (/Users/benhalverson/.nvm/v0.10.38/lib/node_modules/bower/lib/config.js:11:24)
at Object.<anonymous> (/Users/benhalverson/.nvm/v0.10.38/lib/node_modules/bower/lib/index.js:40:32)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

https://github.com/chyld/apollo/blob/master/setup.sh

skolsuper

skolsuper commented on May 10, 2015

@skolsuper

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. However bower ... still throws permission denied rather than file not found.

Angel-Gonzalez

Angel-Gonzalez commented on May 10, 2015

@Angel-Gonzalez

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 and sudo chown -R [user name] ~/.cache hope works for others

skolsuper

skolsuper commented on May 11, 2015

@skolsuper

Thanks Angel-Gonzalez, that worked for me too.

chasevida

chasevida commented on May 14, 2015

@chasevida

@Angel-Gonzalez this resolved it for me too - thanks!

22 remaining items

ghost

ghost commented on Aug 9, 2015

@ghost
meni432

meni432 commented on Aug 9, 2015

@meni432
drigoteixeira

drigoteixeira commented on Oct 21, 2015

@drigoteixeira

@Angel-Gonzalez, Your tip was really helpful! Thank you!

tim545

tim545 commented on Oct 28, 2015

@tim545

@Angel-Gonzalez solved! Thanks! I was lost on that one

bsienn-khan

bsienn-khan commented on Oct 31, 2015

@bsienn-khan

seriously this was annoying. Thanks @Angel-Gonzalez
please fix this already

lmorenojr

lmorenojr commented on Nov 1, 2015

@lmorenojr

@Angel-Gonzalez thanks that resolved it, appreciate it

ryananthonydrake

ryananthonydrake commented on Nov 3, 2015

@ryananthonydrake

Thanks @Angel-Gonzalez Worked for me too!

thomasrstegelmann

thomasrstegelmann commented on Nov 10, 2015

@thomasrstegelmann

@Angel-Gonzalez Thanks a lot!

bilalcorbacioglu

bilalcorbacioglu commented on Nov 19, 2015

@bilalcorbacioglu
daton89

daton89 commented on Nov 20, 2015

@daton89

@Angel-Gonzalez Thanks works on oxs snow too!

RealWeeks

RealWeeks commented on Nov 21, 2015

@RealWeeks

@Angel-Gonzalez Thanks worked Yosemite.

faceleg

faceleg commented on Nov 22, 2015

@faceleg
Member

Locking to prevent any more "me too" messages cluttering up the volunteer's review queue.

locked and limited conversation to collaborators on Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @notbrain@ad3002@drigoteixeira@sheerun@kymdusting

        Issue actions

          insight-bower.yml with EACCESS error by default · Issue #1607 · bower/bower