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
PHP Explode the String, But Treat Words in Quotes as a Single Word
Causes of MySQL Error 2014 Cannot Execute Queries While Other Unbuffered Queries Are Active
Posting Form Fields With Same Name Attribute
How to Install MySQLi on Macos
Multiple Files Upload in Codeigniter
Send Array With Ajax to PHP Script
How to Remove a Comma Off the End of a String
PHP Connection Failed: Sqlstate[Hy000] [2002] Connection Refused
Need to Write At Beginning of File With PHP
PHP Json_Encode Class Private Members
How Are Echo and Print Different in PHP
How to Show Multiple Recaptchas on a Single Page
PHP: Storing 'Objects' Inside the $_Session
PHP Foreach Pass by Reference: Last Element Duplicating (Bug)
How to Remove Array Element and Then Re-index Array
How to Detect Duplicate Values in PHP Array
Can't Connect to Https Site Using Curl. Returns 0 Length Content Instead. What How to Do