Reference - Composer Error "Your PHP Version Does Not Satisfy Requirements" After Upgrading PHP

Composer Update Error Requirements could not be resolved to an installable set of packages in Laravel

Run this command:

composer install --ignore-platform-reqs

or

composer update --ignore-platform-reqs

Note:

--ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-) and force the installation even if the local machine does not fulfill these. See also the platform config option.
--ignore-platform-req: ignore a specific platform requirement(php, hhvm, lib-
and ext-*) and force the installation even if the local machine does not fulfill it.

Composer update gives error phpunit/phpunit

You have to upgrade your phpunit version to correspond with your php 8.1.7 (choose between phpunit version 9 or 8, according to the official documentation) or downgrade your php version to works with phpunit 6.*.

That's it !

Error Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement

It's because in your project in composer.json file you have:

"require": {
"php": ">=7.3",
.....
},

Try to update this requirement to:

"require": {
"php": "^7.3|^8.0",
.....
},


Related Topics



Leave a reply



Submit