使用 sudo 命令後或者當前用戶爲 root,執行 bower 相關命令會出現錯誤:spa
解決辦法:3d
在命令後面加 --allow-rootblog
例:bower
bower init --allow-rootit
bower install --allow-root 文件名im