"Diary" インターネットさんへの恩返し

いつもソースコードコピペばかりなので,みなさまへ少しばかりの恩返しを

windowsでcomposer install/updateエラー(The openssl extension is required for SSL/TLS protection but is not available)



スポンサーリンク

composer installなどで以下のエラーが出る場合の対応。

[Composer\Exception\NoSslException]
  The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting
   the 'disable-tls' option to true.

SSL/TSL Protectionなしでする場合は以下のコマンドで。

composer config -g -- disable-tls true

SSL/TSL Protectionありでやる場合はこちらを php.ini に設定。php.iniがどこかわからない場合は php --ini で確認。

extension=php_openssl.dll