我正在尝试在我的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
[ComposerDownloaderTransportException] 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
拉拉维尔错误:
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:......
由于未经身份验证的访问,您似乎只是达到了 Github 限制。
[Composer\Downloader\TransportException] 无法下载"https://api.github.com/rate_limit">文件:SSL 操作失败,代码为 1。OpenSSL 错误消息:
因此,只需验证自己就足够了:
- 登录您的 GitHub 帐户,然后单击侧边栏中的"应用程序">
- 在"个人访问令牌"下创建新令牌
- 在项目的文件夹中执行以下操作:
-
composer config github-oauth.github.com YOUR-TOKEN
-
应该就是这样。