当前位置: 首页 > 知识库问答 >
问题:

当我尝试安装代客泊车和作曲家时,我收到此消息。安装失败,正在恢复/创作者将json转换为其原始内容[重复]

蔺德曜
2023-03-14

我试着让贴身男仆工作,但当我跑的时候

composer global require cretueusebiu/valet-windows

我得到这个错误:

无法将您的需求解析为可安装的软件包集。安装失败,正在恢复/创作者将json转换为其原始内容。

以下是完整的输出:

C:\Users\Shadow\Desktop
λ 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:\php7\php.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.

共有1个答案

司马德水
2023-03-14

错误信息非常清楚<代码>代客泊车窗口取决于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中启用卷曲。

 类似资料:
  • (venv)C:\ Users \ Jay MOH \ PycharmProjects \ Elisanta -Command“C:\ Users \ Jaymoh \ PycharmProjects \ Elisanta \ venv \ Scripts \ python . exe-u-C”导入setuptools,tokenizefile = ' C:\ Users \ Jay MOH \

  • 我试图安装2.4.1从文件使用以下命令: 我从包含文件(var/www/projectname/) 有几个软件包安装正确。安装条令软件包时,出现以下错误: InvalidArgumentException$from(/var/www/projectname/bin/doctor)和$to()必须是绝对路径。 这是我已经尝试过的: 运行php编写器。phar自更新(现在是最新版本) 删除了整个项目(

  • 我正在键入,但terminal给出了以下消息: checkPermissions缺少对/usr/local/lib/node_modules的写访问权npm错误!路径/usr/local/lib/node_modules npm错误!代码EACCES npm错误!错误-13 npm错误!syscall访问npm错误!错误:eAcces:权限被拒绝,访问'/usr/local/lib/node_mo

  • 我已经按照Ubuntu 16.04网站上的说明安装了composer。在终端中发出“composer”命令后,它将给出通常的输出。安装composer后,我使用下载了composer 现在要安装Laravel,我必须添加。但是没有。我的主目录中的composer文件夹。有谁能告诉我为什么会这样?

  • 尝试通过android studio 3.4 canary 1运行apk时收到错误消息。 我试过卸载apk、重启android studio和设备、使缓存失效和重新构建,但似乎都没有效果。

  • 作曲家输出(更新后composer.phar) 问题1-索纳塔项目/intl捆绑包2.2的安装请求。*@dev- 我的composer.json: http://pastebin.com/5RcERC6T 我的phpinfo(): http://imageshack.us/f/109/ijoa.png/ 还有/etc/php5/cgi/php.ini: ... [intl]intl.default