スキップしてメイン コンテンツに移動

Windows上でcomposer updateコマンドを実行した場合NoSslExceptionエラー

Windows上でcomposer updateを実行して、

[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.

というエラーが出た場合、下記の手順に従ってPHPのopenssl extesnionを有効にする必要があります。

  1. PHPがインストールされたフォルダ内のphp.iniファイルを開きます。
  2. extension=php_openssl.dllの含まれている行を探す
  3. 行の先頭にあるセミコロン(;)を削除してコメントイン

コメント