-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --allow-root option #6183
Comments
For example (on linux): |
That worked. Thank you! |
sudo chown -R $USER $HOME/.composer |
The last one is the right solution, there is a reason why there is a warning. |
Thanks so much |
You can also do this in a bash shell: $ COMPOSER_ALLOW_SUPERUSER=1 composer show There is no need to make the variable global in your shell or exported - it is only set for the |
Run the following line directly from your server: export COMPOSER_ALLOW_SUPERUSER=1; or Add it to your bash script |
You can also just: yes | composer show |
As bower permit it, and because CI and docker containers are more suitable with a the root user, it seems to me better to have a allow root option.
Maybe a ticket exists, but my search give me many pages and the first and second doesn't mention any such option.
When I run this command:
I get the following output:
And I expected this to happen:
A normal process
The text was updated successfully, but these errors were encountered: