不用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.
安装的时候需要 sudo npm -g install bower --allow-root
这样安装就没有什么问题。
你现在的问题是用户权限不够造成的,你可以:
sudo chown -R 你所操作的用户名 /home/xm/
这样应该就可以了
希望有帮助!
I think it will be help you :http://beyondweb.cn/bower-cannot-be-run-with-sudo.html
sudo bower install --allow-root