Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying to run composer install command in my laravel project and I am facing following error Your lock file does not contain a compatible set of packages Please run composer update in laravel. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How Your lock file does not contain a compatible set of packages Please run composer update Error Occurs ?
- How To Solve Your lock file does not contain a compatible set of packages Please run composer update Error ?
- Solution 1: Run this command
- Solution 2: Specify your php version is your composer.json file
- Solution 3: Run self-update –1
- Summary
How Your lock file does not contain a compatible set of packages Please run composer update Error Occurs ?
I am just trying to run composer install command in my laravel project and I am facing following error.
Your lock file does not contain a compatible set of packages. Please run composer update
How To Solve Your lock file does not contain a compatible set of packages Please run composer update Error ?
How To Solve Your lock file does not contain a compatible set of packages Please run composer update Error ?
To Solve Your lock file does not contain a compatible set of packages Please run composer update Error Just Run this command if you are trying to run composer install composer install –ignore-platform-reqs and Just Run this command if you are trying to run composer update composer update –ignore-platform-reqs second solution is Specify your php version is your composer.json file just like this.
Your lock file does not contain a compatible set of packages Please run composer update
To Solve Your lock file does not contain a compatible set of packages Please run composer update Error Just Run this command if you are trying to run composer install composer install –ignore-platform-reqs and Just Run this command if you are trying to run composer update composer update –ignore-platform-reqs second solution is Specify your php version is your composer.json file just like this.
Solution 1: Run this command
Just Run this command if you are trying to run composer install
composer install --ignore-platform-reqs
Just Run this command if you are trying to run composer update
composer update --ignore-platform-reqs
Solution 2: Specify your php version is your composer.json file
Specify your php version is your composer.json file
"config": {
"platform": {
"php": "7.3"
}
},
Solution 3: Run self-update –1
Just run composer with self-update –1 Here is command.
composer self-update --1
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read