bower cannot be run with sudo

set global bower config that will allow running bower as root

Option 1: you can run bower as root by typing:

bower install --allow-root

root is allowed by setting --allow-root command parameter
Option 2: is using global setting that allows root, by creating file: /root/.bowerrc which have inside following configuration:
{ "allow_root": true }

原文: run-bower-from-root-user-its-possible-how

你可能感兴趣的:(bower cannot be run with sudo)