Error: Your requirements could not be resolved to an installable set of packages

sajag16642

I am trying to run composer install on my server,(which is a CentOS based machine) and getting this weird error, Your requirements could not be resolved to an installable set of packages.

Though output of my phpinfo() in my project folder gives php version as 7.4, but running php -v command shows it as 7.1, Please let me know how to fix it.

Edit: composer -vvv about is showing following- Running 1.10.15 with PHP 7.1.33 on Linux

sajag16642

Ok, I figured it out, The problem was with php-cli as mentioned. Instead of updating to a newer version or removing old version I created an alias for the binary file of new version of PHP and provided full path to the composer, so my command now looks like this: [alias(path to new version of PHP)] [alias(path to composer)] [composer command]..

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Your requirements could not be resolved to an installable set of packages

Error:Your requirements could not be resolved to an installable set of packages.(on server)

PHP Laravel error - Your requirements could not be resolved to an installable set of packages

Your requirements could not be resolved to an installable set of packages. Laravel 5.6?

Composer update :Your requirements could not be resolved to an installable set of packages

Laravel - Your requirements could not be resolved to an installable set of packages

PHP Composer not installing - Your requirements could not be resolved to an installable set of packages

Your requirements could not be resolved to an installable set of packages. - Symfony Project

Your requirements could not be resolved to an installable set of packages for laravel

Your requirements could not be resolved to an installable set of packages for pinterest API

composer update: Your requirements could not be resolved to an installable set of packages

Laravel : Your requirements could not be resolved to an installable set of packages

Composer install Laravel: Your requirements could not be resolved to an installable set of packages

composer install - Your requirements could not be resolved to an installable set of packages

Composer require. "Your requirements could not be resolved to an installable set of packages"

How can I resolve "Your requirements could not be resolved to an installable set of packages" error?

I am getting this error with laravel scout: Your requirements could not be resolved to an installable set of packages

Laravel on Linux: Create new project Error: Your requirements could not be resolved to an installable set of packages

Laravel 8 ERROR: Your requirements could not be resolved to an installable set of packages While Installing payping-client

composer update error: requirements could not be resolved to an installable set of packages

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

Your requirements could not be resolved to an installable set of packages. - Laravel Lumen Mail

Drupal 8 Composer Your requirements could not be resolved to an installable set of packages - commerceguys/intl

Your requirements could not be resolved to an installable set of packages Dingo/api does not install on laravel v5.5.24

Laravel 8 Your requirements could not be resolved to an installable set of packages when running composer require laravel/passport

How to fix "Your requirements could not be resolved to an installable set of packages" for installing Avalara?

"Composer update for Laravel: Requirements could not be resolved to an installable set of packages."

Composer Requirements could not be resolved to an installable set of packages. -kreait/laravel-firebase

Composer error - Your requirements could not be resolved - Laravel 4.2 on Mediatemple