My server came with composer self-update --1 cron job so I didn't have any issues.
Oct 31, 2020
5
Level 1
Composer V. 2 Wont stay at V. 2 between sessions
So I have a forge dev server. I spent some time trying to find out why my composer wont update. Just had to sudo the command. But when I logout of my server (from VS Code Remote Server Connection) my composer goes back to old 1.x version.
Has anyone come across this?
Level 102
For mine to work locally I had to run
sudo -H composer selfupdate
It's in the docs here https://getcomposer.org/doc/03-cli.md#self-update-selfupdate-
Please or to participate in this conversation.