2015-07-31 19 views
5

Sto cercando di eseguire compositore installare nel mio progetto, ma ho il seguente erroreImpossibile eseguire l'installazione compositore

[Composer\Downloader\TransportException] 
The "http://packagist.org/p/provider-2013$43e3f41fbe30a46245103451248f688a727f076a6e90636d19a69a156c17a416.json" file could not be downloaded (HTTP/1.1 400 Received invalid request from Client) 

ho cercato di correre il compositore di auto-aggiornamento e hanno questo errore

[Composer\Downloader\TransportException] 
The "https://getcomposer.org/version" file could not be downloaded: Failed to enable crypto failed to open stream: operation failed 

Sto usando Ubuntu 15.04 con apache/php5.6.4/mysql dietro un proxy.

Ho provato a scaricare http://curl.haxx.se/ca/cacert.pem e aggiornato il mio file php.ini con il seguente

curl.cainfo=/etc/ssl/certs/cacert.pem 
openssl.cafile=/etc/ssl/certs/cacert.pem 
openssl.capath=/etc/ssl/certs 

Esecuzione compositore diagnosticare restituisce questo

Checking composer.json: OK 
Checking platform settings: OK 
Checking git settings: OK 
Checking http connectivity to packagist: FAIL 
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded (HTTP/1.1 400 Received invalid request from Client) 
Checking https connectivity to packagist: OK 
Checking HTTP proxy: OK 
Checking HTTP proxy support for request_fulluri: FAIL 
Unable to assess the situation, maybe packagist.org is down (The "http://packagist.org/packages.json" file could not be downloaded (HTTP/1.1 400 Received invalid request from Client)) 
Checking HTTPS proxy support for request_fulluri: OK 
Checking github.com rate limit: OK 
Checking disk free space: OK 
Checking composer version: FAIL 
You are not running the latest version 

E infine openssl_get_cert_locations() restituisce

  • default_cert_file: /usr/lib/ssl/cert.pem
  • default_cert_file_env: ssl_cert_file
  • default_cert_dir:/usr/lib/ssl/certs
  • default_cert_dir_env: SSL_CERT_DIR
  • default_private_dir:/usr/lib/ssl/private
  • default_default_cert_area:/usr/lib/ssl
  • ini_cafile: /etc/ssl/certs/cacert.pem
  • ini_capath:/etc/ssl/certs

sono ad un totale perdita di ciò che è sbagliato e ancor più di come posso eseguire il debug di questo.

Spero che qualcuno là fuori possa aiutarmi!

risposta

0

Forse puoi provare a cambiare il tuo proxy.

http://composer-proxy.jp/

Ecco un proxy dal Giappone. Spero che funzioni per te.

0

Prova php composer global self-update

0

Impostare il proxy nell'ambiente, utilizzare questo nel terminale:

export http_proxy=<proxy>:<port> 
export https_proxy=<proxy>:<port> 
0

se linux - service iptables stop

o chiudere anti-virus, firewall su Windows

0

stesso con voi. e ho trovato il modo di risolverlo (per la finestra 10) su internet. 1 - Vai alla cartella PATH\xampp\apache ed eseguire makecert.bat 2 - aggiungere questo script per composer.json file di

"repositories": [ 
     { 
      "type": "composer", 
      "url": "https://packagist.org" 
     }, 
     { 
      "packagist": false 
     } 
    ] 
Problemi correlati