不用sudo 装不上bower,init的时候提示:
Error: EACCES, permission denied '/home/xm/.config/configstore/insight-bower.yml'
You don't have access to this file.
用sudo bower init又错误:
bower ESUDO Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
I think it will be help you :http://beyondweb.cn/bower-cannot-be-run-with-sudo.html
sudo bower install --allow-root