首先对我的英语感到抱歉!我处于需要降级Laravel项目的情况,因为有关在安装服务器(php 5.4)上运行的php版本的一些历史记录。设置composer.json并运行update之后, 我得到this error
composer update --no-interaction --ansi
C:\composer\composer.bat update --no-interaction --ansi
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 46 installs, 0 updates, 0 removals
- Installing psy/psysh (v0.4.4): Downloading (connecting...)
Downloading (failed)
Downloading (connecting...)
Downloading (failed)
Downloading (connecting...)
Downloading (failed) Failed to download psy/psysh from dist: The "https://api.github.com/repos/bobthecow/psysh/zipball/489816db71649bd95b416e3ed9062d40528ab0ac" 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 psy/psysh (v0.4.4): Cloning 489816db71 from cache
489816db71649bd95b416e3ed9062d40528ab0ac is gone (history was rewritten?)
[RuntimeException]
Failed to execute git checkout "489816db71649bd95b416e3ed9062d40528ab0ac" -
- && git reset --hard "489816db71649bd95b416e3ed9062d40528ab0ac" --
fatal: reference is not a tree: 489816db71649bd95b416e3ed9062d40528ab0ac
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
Failed to update packages for ./composer.json.
有人可以帮助我解决此错误吗?!