Composer 2.0 Released,主要是速度提昇了很多(提昇了 50% 以上的速度),於是馬上來升級看看~
Composer 2.0 釋出、升級與問題排解
Composer 2.0 釋出的新聞可見:
Composer 2.0 升級步驟
- composer self-update # 升級 1.x
- composer self-update --1 # 若不想升級到 2.0,強制只升級 1.x 版
- composer self-update --2 # 升級到 2.0版
我是使用 composer self-update --2,結果遇到下述問題:
[RuntimeException] SHA384 is not supported by your openssl extension, could not verify the phar file integrity
但是明明我的 extension 應該有支援:php -r 'var_dump(openssl_get_md_methods());' | grep -i 384,所以乾脆 composer 重新安裝~
- sudo rm -f /usr/local/bin/composer
- sudo curl -s https://getcomposer.org/installer | php # save to ~/composer.phar
- sudo mv composer.phar /usr/local/bin/composer
再來升級一次看看:(下述兩個步驟應該都不會有作用,因為我是直接安裝最新版,只是應該不會有錯誤訊息了)
- composer self-update
- composer self-update --2