按说明步骤安装webman提示https://repo.packagist.org could not be fully loaded (The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out

webmanUser

虚机 VirtualBox6 + ubuntu srv 22.04 + php 8.1 + composer 2.4.1

严格按说明步骤安装,提示以下错误 :
Creating a "workerman/webman" project at "./webman"
https://repo.packagist.org could not be fully loaded (The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
Failed to open stream: operation failed), package information was loaded from the local cache and may be out of date
Installing workerman/webman (v1.4.1)
Failed to download workerman/webman from dist: The zip extension and unzip/7z commands are both missing, skipping.
Your command-line PHP is using multiple ini files. Run php --ini to show them.
Now trying to download from source

  • Syncing workerman/webman (v1.4.1) into cache
  • Installing workerman/webman (v1.4.1): Cloning ff67e0ce66 from cache
    Created project in /home/redasurc/project/webman
    Loading composer repositories with package information
    https://repo.packagist.org could not be fully loaded (The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out
    Failed to enable crypto
    Failed to open stream: operation failed), package information was loaded from the local cache and may be out of date

In RemoteFilesystem.php line 476:

The "https://repo.packagist.org/p2/nikic/fast-route.json" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
Failed to open stream: operation failed

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

693 1 0
1个回答

nitron

安装PHP的zip/zlib扩展,另外你可能需要换个packagist的源

  • 暂无评论
年代过于久远,无法发表回答
🔝