Twitter
で、Composer 2.0 is now released
の呟きが、目立っていました。
確認すると、私のComposer
の現在のバージョンは、1.10.15
でした。
最新の1.10.16
にするには、下記の通り(試しました)。
composer self-update --1
こんなメッセージが出ました。
Warning: You forced the install of 1.10.16 via --1, but 2.0.1 is the latest stable version. Updating to it via composer self-update --stable is recommended. Updating to version 1.10.16 (1 channel). Downloading (100%) Use composer self-update --rollback to return to version 1.10.15
《追記:2020-10-26》
2.0
にするには、下記の通りらしい(試してみました)。
composer self-update --2
2.0.2
に上げてから、composer update
をすると、下記のメッセージ。
The "wikimedia/composer-merge-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option. The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
とりあえず、composer self-update --rollback
で、元に戻しました。
hirak/prestissimo
プラグインは外してもいいけど、wikimedia/composer-merge-plugin
は、いずれ対応すると思うので、待ちます。
最近は、Webpack 5
やnpm 7
、Vue 3
など、メジャーなバージョンアップが頻繁で、全て、追従できてないです。