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.
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.