how to upgrade to version 2 ?? command, composer self-update --2 , is not defined !!
Also as non root user: file_put_contents(/var/www/mywebsite/vendor/composer/autoload_classmap.php): failed to open stream: Permission denied.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
In case that you’ve installed composer with
aptalready you might have to remove the package first and then follow the steps from the tutorial:
Let me know how it goes. Regards, Bobby
The previous solution (from 15 April 2021) will no longer work.
See instructions on the Composer Download page (and the warning “Please do not redistribute the install code. It will change with every version of the installer.”)
This worked for me to install Composer version 2.3.9 today in my droplet.