Closed (works as designed)
Project:
Varbase - The Ultimate Drupal CMS Starter Kit (Bootstrap Ready)
Version:
8.x-6.7
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2019 at 17:05 UTC
Updated:
31 Oct 2019 at 18:28 UTC
Jump to comment: Most recent
Comments
Comment #2
metalboteI don't know much about mac, but if you just type
composer <command>into your shell, it will probably use the composer/php version set in$PATHTry
composer diagnose, as output you will get which composer/php version is being used and the according paths:I'm assuming you're reading 7.1.23. If so, use something like:
export PATH=/Applications/MAMP/bin/php/php7.3.7/bin/:$PATHto set the right php version, here php7.3.7.
Look into /Applications/MAMP/bin/php/ for the php version you like to use, and change accordingly
Comment #3
metalboteComment #4
JayBeeDutch commentedJust some additional information.
@Metalbote thanks for the tip on composer diagnose. It reads the php 7.1.23 version. But on the command line "php -v" shows the "MAMP"-version. Will check why MAMP and terminal/$PATH are showing different versions. Will work-around with adjusting $PATH. Thanks for the help.
Comment #5
metalboteOkay, so I assume your installed composer uses the wrong php version.
Use one of the solutions:
/Applications/MAMP/bin/php/php7.3.7/bin/php composer installAt your global composer config in
/Users/<user>/.composer/config.jsonadd something like:Comment #6
metalboteComment #7
JayBeeDutch commented@metalbote,
tnx for the solutions.
It's ICT so it is not logical (but everything is possible). You have to study for it, haha!
Why can't it be simple. Set a php-version at one place and use it anywhere? Because even a chimp would understand.
There goes our income.
Thanks for your suggestions. Just hit the wall thinking it would be simple....
Kind regards and gratitude.
Comment #8
mmjvb commentedProblems in the infrastucture don't qualify as bug report, they are considered support requests.