I have a local development server where I test a lot of things, now I play with bower to manage library dependencies in my Symfony2 project. After installing NodeJS (v0.10.31) and bower (1.3.9), I tried to run the sp:bower:install command, which belongs to Symfony2 SpBowerBundle from the console, as root :
Symfony > sp:bower:install Installing bower dependencies for "TemplateBundle" into "/var/www/html/tanane/src/Tanane/TemplateBundle/Resources/config/bower/../../public/components" bower ESUDO Cannot be run with sudo Additional error details: Since bower is a user command, there is no need to execute it with superuser permissions. If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs. http:
I know that adding --allow-root works, since I tested directly from bash, but apparently it is not allowed from the command line of the package. Now, is the only way to run bower as root to add --allow-root or does it exist in another way?
ReynierPM 04 Sep '14 at 18:45 2014-09-04 18:45
source share