安装webman报错

lgmmy

问题描述

安装webman报错:Could not find package workerman/webman with stability stable.
php版本7.3
composer的版本v2.5.8

程序代码

$ composer create-project workerman/webman
Creating a "workerman/webman" project at "./webman"

In CreateProjectCommand.php line 424:

  Could not find package workerman/webman with stability stable.

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--p
refer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSI
TORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-s
cripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-ins
tall] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-P
LATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<ver
sion>]]]
2104 1 0
1个回答

walkor 打赏

应该是使用了composer代理导致的,去掉代理试下

  • lgmmy 2023-10-26

    好的,谢谢已经解决了!

  • lgmmy 2023-10-26

    我从composer官网找到了这条命令composer config -g --unset repos.packagist

  • xiaohelong 2024-06-07

    确实是,执行完composer config -g --unset repos.packagist,就可以了

年代过于久远,无法发表回答
×
🔝