尝试安装代客和作曲家时,我收到此消息.安装失败,将 ./composer.json 恢复为其原始内容



我试图让代客泊车工作,但是当我运行时

composer global require cretueusebiu/valet-windows

我收到此错误:

您的要求无法解析为一组可安装的软件包。安装失败,将 ./composer.json 恢复为其原始内容。

以下是完整输出:

C:UsersShadowDesktop
λ composer global require cretueusebiu/valet-windows
Changed current directory to C:/Users/Shadow/AppData/Roaming/Composer
Using version ^2.1 for cretueusebiu/valet-windows
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cretueusebiu/valet-windows 2.1.0 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
- cretueusebiu/valet-windows 2.1.1 requires nategood/httpful ~0.2 -> satisfiable by nategood/httpful[0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.13, 0.2.16, 0.2.17, 0.2.19, 0.2.2, 0.2.20, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9].
- nategood/httpful 0.2.9 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.8 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.7 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.6 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.20 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.19 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.17 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.16 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.13 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.11 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.10 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- nategood/httpful 0.2.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for cretueusebiu/valet-windows ^2.1 -> satisfiable by cretueusebiu/valet-windows[2.1.0, 2.1.1].
To enable extensions, verify that they are enabled in your .ini files:
- C:php7php.ini
You can also run `PHP --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.

错误消息非常清楚。valet-windows取决于nategood/httpful.列出的每个nategood/httpful版本都依赖于PHP的curl扩展,而您的系统没有:

nategood/httpful 0.2.9 requires ext-curl * -> the requested PHP extension curl is missing from your system.

curl可能随您安装的任何版本的 PHP 一起提供,启用它可能只涉及取消注释

;extension=php_curl.dll

通过删除前导;在您的php.ini中。

请参阅在 Windows 10 中启用 cURL。

相关内容

  • 没有找到相关文章

最新更新