Your PHP version does not satisfy that requirement [closed]
-
05-02-2021 - |
Question
We use the following for our local development environment. When we run composer require 'drupal/module_name:^1.1'
, we get the following error message. We have doubled checked that all settings for Acquia Dev Desktop
are set to php7.1.11
, but still getting this message.
Error Message:
Problem 1
- symfony/browser-kit v4.1.7 requires php ^7.1.3 -> your PHP version (5.6.32) does not satisfy that requirement. - symfony/browser-kit v4.1.7 requires php ^7.1.3 -> your PHP version (5.6.32) does not satisfy that requirement. - symfony/browser-kit v4.1.7 requires php ^7.1.3 -> your PHP version (5.6.32) does not satisfy that requirement. - Installation request for symfony/browser-kit (locked at v4.1.7) -> satisfiable by symfony/browser-kit[v4.1.7].
Local Development environment:
- Acquia Dev Desktop
Dev Desktop
set to phpv7.1.1
- Using
git bash
by navigating to~/Sites/local-dev/dev
Running php --version
in the ~/Sites/local-dev/dev
(which is one level above docroot
) we get php 5.6.32
Why am I still getting the your PHP version (5.6.32) does not satisfy that requirement
even though Acquia Dev Desktop
is set to phpv7.1.11
?
Solution
After searching, I found out that I had an outdated composer so I did the following steps and now composer is seeing the correct php version.
Previous version of composer was 1.6.3
and php version 5.6.32
Steps:
- ran
composer self-update
- ran
composer diagnose
and observed the following below
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys: Tags Public Key Fingerprint: xxxxx
Dev Public Key Fingerprint: xxxxx
OK Checking composer version: OK
Composer version: 1.8.0
PHP version: 7.1.11
PHP binary path: C:\path\to\devdesktop\php7_1\php.exe