I've been trying to figure out this issue for some time now and I am getting extremely frustrated. I installed bower and now I am trying to do bower init. I Am able to get through the guided set up. Once I answer : Looks good? I get an Error:EACCESS,open '/var/www/public/bower.json'
and after is console trace with standardRenderer.error being the first item. I also get an error when i just use bower install angular.
How do I resolve this issue?
thanks
After doing some insane digging, I found it was a multitude of permission issues. Referencing these 2 related questions:
Do this order:
Can you try doing below steps -
sudo npm install -g bower
bower cache clean
sudo rm -rf ~/.bower
bower init
If above steps don't fix then the configstore might be removed by one of your program for some reason.
In this case you can go to open your terminal and type:
open Users/[your username]/.config
[your username] should be your username. I assume it's jason.
And then you create a folder called configstore!
Done.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.