独学者Fossa

独学していることなど

Composer 2.0

Twitterで、Composer 2.0 is now releasedの呟きが、目立っていました。

Composer
Composer

確認すると、私の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 5npm 7Vue 3など、メジャーなバージョンアップが頻繁で、全て、追従できてないです。