diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 2a080067e..635fb04d3 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -286,6 +286,7 @@ class Application extends BaseApplication } if ($isNonAllowedRoot && !$io->isInteractive()) { + $io->writeError('Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.'); $this->disablePluginsByDefault = true; }