问题 使用 sudo 命令后或者当前用户为 root,执行 bower install 安装命令会出现错误: 解决方案 bower install --allow-root 文件名 转载于:https://www.cnblogs.com/fire-passiontao/p/5939458.html