Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I get the following error when I run bower:

bower ESUDO Cannot be run with sudo

Thing is, I'm not running bower with sudo. The command I run is:

bower install foo

or

bower search cats

I am logged in as root to an Ubuntu 12.04 server but I am not using sudo. What gives? How do I get bower working?

share|improve this question
    
Please consider updating the accepted answer. –  Binyomin Trager Mar 5 at 17:52

2 Answers 2

up vote 12 down vote accepted

I had the same problem. All you have to do is add --allow-root to your command.

See this issue.

share|improve this answer

The problem was that while bower won't run with sudo, it also won't run if you are logged in as root. You have to create a user and login with that in order to get it to work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.