Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

242Studios's avatar

Composer Update Problem

Wondering somebody can help.

I have a DO droplet provisioned via Forge. When I try to update composer on one of my installs, I'm seeing the following message:

[Symfony\Component\Console\Exception\RuntimeException] The "--2" option does not exist.

This is happening when I run the following command:

composer self-update --2

I'm following the article here: https://blog.laravel.com/upgrading-to-composer-v2

0 likes
3 replies
martinbean's avatar

@bahamagician The command looks correct. Do you know what version of Composer is installed on your DO droplet? What does it show if you run composer self-update —help?

242Studios's avatar

When I check the version this is what I get:


Composer version 1.10.1 2020-03-13 20:34:27

And when I run composer self-update -help, this is what I get:


Updating to version —help (stable channel).


  [Composer\Downloader\TransportException]
  The "https://getcomposer.org/download/—help/composer.phar.sig" file could n
  ot be downloaded (HTTP/1.1 404 Not Found)


self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]

Please or to participate in this conversation.