While updating the composer you encounter an unknown and strange error “Laravel Composer Install, Don’t Install Laravel Framework”. That is happened due to mismatch of laravel version and the package version.
Sometimes package version is latest and laravel version is old or vice versa sometimes. Both needs to be latest or same version to support each other.
Possible Solution 1: Don’t Install Laravel/Framework
composer require laravel/framework
By running this command, it will revert or update the composer.json after that you can run composer update command to make the changes you want.
Possible Solution 2:
Follow the below steps to diagnose the problem.
- go to composer.json file
- look for packages which you don’t use
- remove them from the require list
- then run composer update
If you still need help regarding the issue of Laravel Composer Install, Don’t Install Laravel Framework, don’t hesitate to ask us in the comment.