我在我的Windows系统中安装laravel。我已经安装了作曲家。但是作曲家在尝试创建一个新的laravel项目的同时也存在一些问题。
我从cmd进行了作曲家诊断,结果如下:
composer diagnose
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Laravel错误:
new laravel_demo_1
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 59 installs, 0 updates, 0 removals
- Installing doctrine/inflector (v1.1.0): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download doctrine/inflector from dist: The "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing doctrine/inflector (v1.1.0): Cloning 90b2128806 from cache
- Installing erusev/parsedown (1.6.1): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download erusev/parsedown from dist: The "https://api.github.com/repos/erusev/parsedown/zipball/20ff8bbb57205368b4b42d094642a3e52dac85fb" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:......
发布于 2017-03-15 10:02:07
看来,由于未通过身份验证的访问,您只是达到了Github的限制。
无法下载"https://api.github.com/rate"文件: OpenSSL操作失败,代码1。OpenSSL错误消息:
因此,仅仅验证一下自己就足够了:
composer config github-oauth.github.com YOUR-TOKEN
应该是这样的。
https://stackoverflow.com/questions/42804615
复制相似问题