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
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
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