EACCES Error with Bower install?

后端 未结 8 953
长情又很酷
长情又很酷 2020-12-23 16:07

I\'ve read a few answers on StackOverflow & some other sites but none seem to fix the issue I\'m having.

I\'m installing AppGyver Add-ons, via terminal. Getting

相关标签:
8条回答
  • 2020-12-23 16:52

    Im not sure what happened with my project but in order to fix the issues with bower I had to run the following.

    sudo npm install -g bower
    
    sudo bower cache clean --allow-root 
    
    rm -Rf bower_components
    
    sudo bower install --allow-root
    

    Im still not really sure what went wrong but after those commands i was up and running

    0 讨论(0)
  • 2020-12-23 16:53

    I had a similar issue that I couldn't resolve using these suggestions. I was successful when I ran Bower with root privileges, like so:

    sudo bower install --allow-root
    
    0 讨论(0)
  • 2020-12-23 16:55

    I hit the same thing and noticed that the bower_components folder was owned by the root user. I changed ownership to my user and everything worked without having to run bower as root.

    sudo chown -R $USER bower_components
    
    0 讨论(0)
  • 2020-12-23 16:56

    1) run

    $groups
    

    to get the name of your group

    2) then run

    $sudo chown -R {user}:{group} ~/.config 
    $sudo chown -R {user}:{group} ~/.cache
    

    where {user} - is username and {group} - is group name

    0 讨论(0)
  • 2020-12-23 17:01

    Change the ownership for the .config and cache directory

    sudo chown -R username:username ~/.config 
    

    and

    sudo chown -R username:username ~/.cache
    
    0 讨论(0)
  • 2020-12-23 17:03

    I noticed you tried this from a MacBook Pro.

    You could try this:

    • go to the finder
    • under menu go Go To Folder type this: ~/.cache/bower
    • delete its content and try again.

    Also as @Edwin suggested you may try:

    The command bower cache clean which will have the same effect irrespective of OS.

    0 讨论(0)
提交回复
热议问题