php - 使用 php composer.phar 通过 SSH 安装供应商失败
问题描述
我想通过 SSH 从 composer.json 和 composer.lock 文件安装供应商
php composer.phar 安装:
Installing dependencies (including require-dev) from lock file
Package operations: 43 installs, 0 updates, 0 removals
- Installing doctrine/lexer (v1.0.1): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download doctrine/lexer from dist:
The "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c" 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
Now trying to download from source
- Installing doctrine/lexer (v1.0.1): Cloning 83893c552f...
解决方案
它是一个 OVH 配置(文件:.ovhconfig),通过将 container.image 替换为 stable : (container.image=stable)
推荐阅读
- cluster-computing - weka 集群中没有类
- php - Laravel 资源组按结果
- excel - 按日期匹配/合并多个范围或数组的有效方法
- java - 将多个图像数据从 firebase 添加到 android studio
- java - Java,自从在 Linux 上迁移到 Java 14 后,无法执行 spawn helper 错误
- windows-subsystem-for-linux - 我应该在 WSL 2 中还是在 Windows 上安装工具?
- jupyter-notebook - 默认从 src 代码安装并运行 jupyterlab
- ios - 为什么我不能创建针对应用事件(即购买)优化的广告集?
- python - 为什么要在 KNN Imputation 之前对数据进行归一化?
- php - PHP 使用 SameSite 为 php 7.4 设置 Session-Cookie