安装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>]]]
应该是使用了composer代理导致的,去掉代理试下
好的,谢谢已经解决了!
我从composer官网找到了这条命令composer config -g --unset repos.packagist
确实是,执行完composer config -g --unset repos.packagist,就可以了