How to install/enable PHP Composer 2 on Plesk Server?

Follow

Comments

1 comment

  • Avatar
    Mail

    Hello,
    I tried to follow the procedure to switch to composer 2 version.
    However, I have several errors when I want to update (Step 10).
    Cordially.

    • For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins
    • You have until July 2022 to add the setting. Composer will then switch the default behavior to disallow all plugins.
    • The "plesk/composer-command-info" plugin (installed globally) was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.2.0"). You may need to run composer update with the "--no-plugins" option.
    • Loading composer repositories with package information
    • Updating dependencies
    • Your requirements could not be resolved to an installable set of packages.
    •  
    • Problem 1
    • - Root composer.json requires friendsofphp/php-cs-fixer ~1.12 -> satisfiable by friendsofphp/php-cs-fixer[v1.12.0, ..., v1.13.3].
    • - friendsofphp/php-cs-fixer[v1.12.0, ..., v1.13.3] require php ^5.3.6 || >=7.0 <7.2 -> your php version (8.0.14) does not satisfy that requirement.
    •  
    • Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request