This was an issue with Composer, By installing latest version of Composer solved it. The bug for the constant variable PRE_COMMAND_RUN is raised and closed.
You probably have an outdated version that doesn’t even support self-update unfortunately.
So here’s a oneliner to install the latest version in /usr/local/bin:
5
Answers
This was an issue with Composer, By installing latest version of Composer solved it.
The bug for the constant variable PRE_COMMAND_RUN is raised and closed.
You need install latest version of composer, upgrade steps given below.
— Remove existing composer
Debian/Ubuntu
Centos/Redhat
Get the latest composer using wget.
Move composer executable to PATH so it can be accessible globally.
To check the composer version
You have to reinstall the Composer and use the latest composer version
To do that you can follow the following steps:
Step #1) Remove the current composer:
Step #2) install the composer , you can using following commands
then to make sure you have the latest Composer , run the following command
Now, your ready to install Magento,
to install Magento via composer :
if the project folder name is exist , remove the folder and try again to install magento
You probably have an outdated version that doesn’t even support self-update unfortunately.
So here’s a oneliner to install the latest version in /usr/local/bin:
Check:
Composer self-update wasnt working with my composer version, I use ubuntu(LEMP).
Latest version of composer was installed – 1.6.3 I think.
We need this 1.10.17.
Check version:
To be sure remove all vendor and cache: