Composer hanging while updating dependencies

前端 未结 13 1341
青春惊慌失措
青春惊慌失措 2020-12-24 05:30

I tried updating a Laravel project I\'m working on today using composer update

But it hung on Updating dependencies (including require-dev)

13条回答
  •  旧巷少年郎
    2020-12-24 05:54

    I solved it by editing php.ini file in order to set de cacert required for ssl verification:

    1. Download the file http://curl.haxx.se/ca/cacert.pem
    2. Edit php.ini to set the pat:

      [openssl]
      ; The location of a Certificate Authority (CA) file on the local filesystem
      ; to use when verifying the identity of SSL/TLS peers. Most users should
      ; not specify a value for this directive as PHP will attempt to use the
      ; OS-managed cert stores in its absence. If specified, this value may still
      ; be overridden on a per-stream basis via the "cafile" SSL stream context
      ; option.
      openssl.cafile=C:\web\certs\cacert.pem
      curl.cainfo=C:\web\certs\cacert.pem
      
    3. Try again

提交回复
热议问题