php - 检查 github.com oauth 访问:失败
问题描述
ENV: docker,MAC-OS,我正在运行以下命令。
composer diagnose
收到以下消息
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
require.AB/Modules : exact version constraints (3.17) should be avoided if the package follows semantic versioning
require.
ABC/mongodb-library : exact version constraints (1.15) should be avoided if the package follows semantic versioning
require.tecnickcom/tcpdf : exact version constraints (6.2) should be avoided if the package follows semantic versioning
require.
ABC/dns-cache-client : exact version constraints (1.0.3) should be avoided if the package follows semantic versioning
Checking platform settings: The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1.
If possible you should upgrade OpenSSL to version 1.0.1 or above.
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: **FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Failed to enable crypto
failed to open stream: operation failed**
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: xxx
Dev Public Key Fingerprint: xxx
OK
Checking composer version: OK
Composer version: 1.8.0
PHP version: 5.6.21
PHP binary path: /usr/local/php5/bin/php
**Installed openssl**
openssl version
LibreSSL 2.2.7
我已经用这个命令和 composer.json 全局添加了令牌。
composer config -g github-oauth.github.com XXXXXXXXXXXXXXXXXXXXXXX
https://www.previousnext.com.au/blog/managing-composer-github-access-personal-access-tokens 问题仍然存在。任何人都可以建议我如何解决这个问题?
解决方案
它通过授予所有权限来工作:
-在xampp的htdocs文件夹里面,它不起作用是php版本问题 -在外面生成文件夹,然后将它们复制并粘贴到htdocs上
推荐阅读
- reactjs - 类型'IntrinsicAttributes & RefAttributes 上不存在属性'item'
>'.ts(2322) - c++ - 矩阵C ++每行中的最小元素
- python - Python,打开一张照片 WIndows Live Photo Gallery 并在最后关闭它
- javascript - 在云功能冷启动期间,node_modules 文件夹的大小是否重要?
- python - Maya中的对象及时旋转
- node.js - 无法访问我的站点中的链接(复制和粘贴):Node.js - Express.js - Webpack - Vue.js - historymode
- python - ImportError:无法从“tensorflow.python.keras.saving.saved_model”导入名称“export_saved_model”
- c - 为什么我的代码在删除具有两个子节点的节点后无法显示 pre_order?
- ios - Alamofire.uploadmultipartFormData 与 JSONEncoding.default (Swift)
- javascript - 将相邻列中的标题元素最小高度设置为与最高标题一样高