EACCES Error with Bower install?

后端 未结 8 954
长情又很酷
长情又很酷 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 17:10

    I had the same issue but nothing above worked for me. If you recently updated Xcode and don't recognize, don't forget to agree the terms and install the command line tools!

    xcode-select --install

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

    Like everyone says, bower and npm shouldn't be run with sudo. This corrected the problem for me on my OSX machine.

    sudo chown -R $USER:$GROUP ~/.npm
    sudo chown -R $USER:$GROUP ~/.config
    

    Now you should be able to run:

    npm install
    npm start 
    

    and even

    bower install
    

    without having to use sudo.

    *note npm start usually calls bower install

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