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

     2023-02-24     126

关键词:

【中文标题】尝试安装代客泊车和作曲家时,我收到此消息。安装失败,将 ./composer.json 还原为其原始内容 [重复]【英文标题】:When trying to install valet and composer I get this message. Installation failed, reverting ./composer.json to its original content [duplicate] 【发布时间】:2019-12-30 20:19:30 【问题描述】:

我正在尝试让代客工作,但是当我跑步时

composer global require cretueusebiu/valet-windows

我收到此错误:

您的要求无法解决为一组可安装的软件包。安装失败,正在将 ./composer.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】:

错误信息很清楚。 valet-windows 取决于 nategood/httpful。每个列出的nategood/httpful 版本都依赖于PHP's curl extension,而您的系统没有:

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 中删除前导;

见Enable cURL in Windows 10。

【讨论】:

作曲家安装/更新失败

】作曲家安装/更新失败【英文标题】:Composerinstall/updatefailing【发布时间】:2013-06-0214:27:10【问题描述】:我在安装我创建的包时遇到问题......https://packagist.org/packages/mardy-git/redirect据我所知,一切正常,我应该能够安装它。但... 查看详情

由于证书问题无法安装作曲家

】由于证书问题无法安装作曲家【英文标题】:Can\'tinstallcomposerduetocertificateissues【发布时间】:2017-05-0101:34:05【问题描述】:所以我整个上午都在尝试安装composer,这样我就可以开始使用laravel框架了。我在php7.0上运行带有XAMPP的... 查看详情

Android Studio:应用程序安装失败

...led【发布时间】:2015-12-1912:00:32【问题描述】:我一直在尝试学习如何使用AndroidStudio,但是当我尝试运行其中一个示例程序时,我收到了以下错误消息:安装失败,消息为空。此问题可能通过卸载现有版本的apk(如果存在)得... 查看详情

Orocommerce 作曲家安装失败

】Orocommerce作曲家安装失败【英文标题】:Orocommercecomposerinstallfailed【发布时间】:2021-11-0321:05:04【问题描述】:当我尝试安装社区版的Orocommerce时,我执行下一个命令:composerinstall--prefer-dist--no-dev几分钟后进程停止并返回下一个... 查看详情

未找到 Laravel“代客安装”

...tfound【发布时间】:2016-09-0206:40:28【问题描述】:我正在尝试设置LaravelsValet(ValetisaLaraveldevelopmentenvironmentforMac)。一切正常,直到涉及“代客安装”命令。该命令必须在终端中执行。但我收到错误“找不到命令”。有什么想法,... 查看详情

尝试自我更新作曲家时出错

】尝试自我更新作曲家时出错【英文标题】:Errorwhentryingtoself-updatecomposer【发布时间】:2015-04-2503:26:17【问题描述】:当我尝试自我更新作曲家时,我收到“权限被拒绝”错误消息,但是当我尝试使用“sudo”执行相同的命令时-... 查看详情

Symfony2 和 composer 没有安装包

...新Friendsofsymfony/user-bundle我收到此错误:使用包信息加载作曲家存储库更新依赖项(包括require-de 查看详情

熊猫数据阅读器安装失败

...lationfailed【发布时间】:2018-12-0312:10:48【问题描述】:我尝试通过Anacondapromt安装pandasdatareader,但收到此错误消息。可能是什么问题?我使用Windows7和Ancaonda1.6.9提前致谢,罗兰【问题讨论】:欢迎来到***。请复制并粘贴错误消息... 查看详情

在作曲家中执行 git clone 失败

】在作曲家中执行gitclone失败【英文标题】:Failedtoexecutegitcloneincomposer【发布时间】:2015-03-2102:11:40【问题描述】:我正在尝试在我的laravel站点中安装我在git上创建的东西,当我点击composerupdate我有git版本2.0.1而我的mac版本是10.8.... 查看详情

我在 Play 商店中部署免安装应用时收到此错误消息

】我在Play商店中部署免安装应用时收到此错误消息【英文标题】:Igotthiserrormessagewheni\'mdeployinginstantapponplaystore【发布时间】:2018-03-2511:42:26【问题描述】:大家好,这里的任何人都可以帮助解决这个问题我正在开发免安装应用... 查看详情

无法看到 mysql 数据库时作曲家安装失败

】无法看到mysql数据库时作曲家安装失败【英文标题】:composerinstallfailswhenunabletoseemysqldatabase【发布时间】:2015-02-1416:29:41【问题描述】:TL;DR:当安装后脚本看不到MySQL服务器时,composer安装失败我正在为Symfony应用程序构建一个... 查看详情

为啥作曲家在 300 秒后安装超时?

】为啥作曲家在300秒后安装超时?【英文标题】:Whycomposerinstalltimeoutsafter300seconds?为什么作曲家在300秒后安装超时?【发布时间】:2013-09-2521:37:05【问题描述】:我有一个在symfony2中制作的小项目,当我尝试在我的服务器上构建... 查看详情

使用作曲家安装 laravel 时出现问题 [重复]

】使用作曲家安装laravel时出现问题[重复]【英文标题】:Problemsinstallinglaravelwithcomposer[duplicate]【发布时间】:2015-04-0414:35:33【问题描述】:问题:我想探索laravel5,但在安装时惨遭失败。我正在使用本指南:http://laravel.com/docs/5.0... 查看详情

我正在尝试安装 NVIDIA 版本的工具包,但收到类似“...此声明可能没有外部“C”链接”之类的错误消息

】我正在尝试安装NVIDIA版本的工具包,但收到类似“...此声明可能没有外部“C”链接”之类的错误消息【英文标题】:I\'mtryingtoinstalltheNVIDIAversionofatoolkit,andI\'mgettingerrormessageslike"...thisdeclarationmaynothaveextern"C"linkage"... 查看详情

收到错误消息安装失败缺少共享库

】收到错误消息安装失败缺少共享库【英文标题】:gettingerrormsginstallfailedmissingsharedlibrary【发布时间】:2011-07-1913:19:55【问题描述】:我制作了一个使用谷歌地图APi的应用程序,我正在使用适用于android的钛1.2.2和移动sdk1.5.1,无... 查看详情

php - 作曲家更新返回证书验证失败

】php-作曲家更新返回证书验证失败【英文标题】:php-composerupdatereturnscertificateverifyfailed【发布时间】:2017-03-0814:16:35【问题描述】:当我尝试执行composerinstall或composerupdate时,我收到一条错误消息,指出无法验证SSL证书。[Composer... 查看详情

尝试在 Windows 上使用 bash 并没有收到已安装的发行版消息

】尝试在Windows上使用bash并没有收到已安装的发行版消息【英文标题】:TryingtousebashonWindowsandgotnoinstalleddistributionsmessage【发布时间】:2017-12-0310:26:26【问题描述】:我尝试在Windows10上使用bash,但在尝试运行bash时收到此消息:适... 查看详情

为啥我在尝试从 Angular 2 应用程序连接和查询 Firebase 数据库时收到此错误消息?

】为啥我在尝试从Angular2应用程序连接和查询Firebase数据库时收到此错误消息?【英文标题】:WhyamIobtainingthiserrormessagetryingtoconnectandqueryaFirebaseDBfromanAngular2application?为什么我在尝试从Angular2应用程序连接和查询Firebase数据库时收到... 查看详情