rharriso / bower-rails

Bundler-like DSL + rake tasks for Bower on Rails
MIT License
1.46k stars 128 forks source link

invalid option: --allow-root #106

Closed pSenthil202 closed 10 years ago

pSenthil202 commented 10 years ago

I am trying to install all packages specified in bowefile.rb

root@#> rake bower:install bower.js files generated /usr/local/bin/bower install -p bower ESUDO Cannot be run with sudo

When I tried with --allow-root

root@#> rake bower:install --allow-root invalid option: --allow-root

is there any other solution?

SergeyKishenin commented 10 years ago

--allow-root is an option that should be passed to bower not a rake task.

Check out docs and try to do the following:

rake bower:install['--allow-root']