win10 安装webman/admin失败

salan

win10 php版本7.4.3
composer版本2.4.2
执行命令composer require webman/admin --with-all-dependencies
或者composer require webman/admin -W
报如下错:
PS C:\Users\salan.DESKTOP-S5APQJ2\Desktop\webman> composer require webman/admin --with-all-dependencies

Using version ^0.3.3 for webman/admin
./composer.json has been updated
Running composer update webman/admin --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - illuminate/container[v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.25] require psr/container ^1.0 -> found psr/container[1.0.0, 1.1.0, 1.1.1, 1.1.2] but it conflicts with your root composer.json require (^2.0).
    - illuminate/events[v9.0.0, ..., v9.33.0] require php ^8.0.2 -> your php version (7.4.3) does not satisfy that requirement.
    - webman/admin v0.3.3 requires illuminate/events >=7.30 -> satisfiable by illuminate/events[v7.30.0, ..., v7.30.6, v8.0.0, ..., v8.83.24, v9.0.0, ..., v9.33.0].
    - illuminate/events[v7.30.0, ..., v7.30.6] require illuminate/container ^7.0 -> satisfiable by illuminate/container[v7.0.0, ..., v7.30.6].
    - illuminate/events[v8.0.0, ..., v8.83.24] require illuminate/container ^8.0 -> satisfiable by illuminate/container[v8.0.0, ..., v8.83.25].
    - Root composer.json requires webman/admin ^0.3.3 -> satisfiable by webman/admin[v0.3.3].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require webman/admin:*" to figure out if any version is installable, or "composer require webman/admin:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

去掉阿里镜像后又拉不下来 报 : curl error 28 while downloading https://repo.packagist.org/p2/illuminate/database.json: Operation timed out after 300014 milliseconds with 0 bytes received

2033 1 0
1个回答

Tinywan

网络问题,很可能是因为使用了composer代理,请使用以下命令 composer config -g --unset repos.packagist 恢复使用composer官方数据源

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