Skip to content
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

Closed
nicodmf opened this issue Feb 19, 2017 · 6 comments

Comments

@nicodmf
Copy link

@nicodmf nicodmf commented Feb 19, 2017

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:

...composer install

I get the following output:

...Do not run Composer as root/super user! See https://getcomposer.org/root for details

And I expected this to happen:

A normal process

@alcohol

This comment has been minimized.

Copy link
Member

@alcohol alcohol commented Feb 20, 2017

@alcohol alcohol closed this Feb 20, 2017
@henrypenny

This comment has been minimized.

Copy link

@henrypenny henrypenny commented Oct 18, 2018

For example (on linux):
$ export COMPOSER_ALLOW_SUPERUSER=1; composer show;

@RScottLewis

This comment has been minimized.

Copy link

@RScottLewis RScottLewis commented Mar 8, 2019

That worked. Thank you!

@mayankpandav

This comment has been minimized.

Copy link

@mayankpandav mayankpandav commented Aug 29, 2019

sudo chown -R $USER $HOME/.composer

@JWPapi

This comment has been minimized.

Copy link

@JWPapi JWPapi commented Sep 21, 2019

The last one is the right solution, there is a reason why there is a warning.

@emmanuelkafuihayibor

This comment has been minimized.

Copy link

@emmanuelkafuihayibor emmanuelkafuihayibor commented Nov 6, 2019

Thanks so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.