iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >composer 安装问题
  • 953
分享到

composer 安装问题

awsphp云计算 2023-09-21 09:09:39 953人浏览 八月长安
摘要

如果出现下面情况,不管怎么百度都不好用,就用我的方法吧! Loading composer repositories with package infORMation Updating dependencies Your require

如果出现下面情况,不管怎么百度都不好用,就用我的方法吧!

Loading composer repositories with package infORMation
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.JSON requires aws/aws-sdk-PHP, it could not be found in any version, there may be a typo in the package name.
  Problem 2
    - Root composer.json requires cloudflare/sdk, it could not be found in any version, there may be a typo in the package name.
  Problem 3
    - Root composer.json requires esdeathlove/datatables, it could not be found in any version, there may be a typo in the package name.
  Problem 4
    - Root composer.json requires firebase/php-Jwt, it could not be found in any version, there may be a typo in the package name.
  Problem 5
    - Root composer.json requires illuminate/database, it could not be found in any version, there may be a typo in the package name.
  Problem 6
    - Root composer.json requires illuminate/pagination, it could not be found in any version, there may be a typo in the package name.
  Problem 7
    - Root composer.json requires irazasyed/telegram-bot-sdk, it could not be found in any version, there may be a typo in the package name.
  Problem 8
    - Root composer.json requires khanamiryan/qrcode-detector-decoder, it could not be found in any version, there may be a typo in the package name.
  Problem 9
    - Root composer.json requires league/omnipay, it could not be found in any version, there may be a typo in the package name.
  Problem 10
    - Root composer.json requires anankke/omnipay-alipay, it could not be found in any version, there may be a typo in the package name.
  Problem 11
    - Root composer.json requires mailgun/mailgun-php, it could not be found in any version, there may be a typo in the package name.
  Problem 12
    - Root composer.json requires paymentwall/paymentwall-php, it could not be found in any version, there may be a typo in the package name.
  Problem 13
    - Root composer.json requires phpmailer/phpmailer, it could not be found in any version, there may be a typo in the package name.
  Problem 14
    - Root composer.json requires ramsey/uuid, it could not be found in any version, there may be a typo in the package name.
  Problem 15
    - Root composer.json requires robmorgan/phinx, it could not be found in any version, there may be a typo in the package name.
  Problem 16
    - Root composer.json requires sendgrid/sendgrid, it could not be found in any version, there may be a typo in the package name.
  Problem 17
    - Root composer.json requires sentry/sentry, it could not be found in any version, there may be a typo in the package name.
  Problem 18
    - Root composer.json requires slim/slim, it could not be found in any version, there may be a typo in the package name.
  Problem 19
    - Root composer.json requires smarty/smarty, it could not be found in any version, there may be a typo in the package name.
  Problem 20
    - Root composer.json requires stripe/stripe-php, it could not be found in any version, there may be a typo in the package name.
  Problem 21
    - Root composer.json requires symfony/yaml, it could not be found in any version, there may be a typo in the package name.
  Problem 22
    - Root composer.json requires telegram-bot/api, it could not be found in any version, there may be a typo in the package name.
  Problem 23
    - Root composer.json requires voku/anti-xss, it could not be found in any version, there may be a typo in the package name.
  Problem 24
    - Root composer.json requires zeuxisoo/slim-whoops, it could not be found in any version, there may be a typo in the package name.
  Problem 25
    - Root composer.json requires guzzleHttp/guzzle, it could not be found in any version, there may be a typo in the package name.
  Problem 26
    - Root composer.json requires symfony/console, it could not be found in any version, there may be a typo in the package name.
  Problem 27
    - Root composer.json requires nunomaduro/phpinsights, it could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see for more details.
 - It's a private package and you forGot to add a custom repository to find it

Read for further common problems.

 解决方法:

方法一:检查你运行 composer 的php版本是否是 7.4 版本。用 php 7.2 版本试试!!

方法二:如果是用7.4版本,就按标准的写法:

# 先更新源地址

/www/server/php/74/bin/php composer.phar config repo.packaGISt composer https://mirrors.aliyun.com/composer/

# 标准写法

/www/server/php/74/bin/php composer.phar install

--- or ----

/www/server/php/74/bin/php -d disable_functions=''  composer.phar require php-di/php-di -W

上面就是我的解决方法,被坑了好久才找到的,如果你解决了,评论区留言告诉我!

然后,你就快乐的等待着安装完成吧!!

来源地址:https://blog.csdn.net/shengshuai/article/details/124558627

--结束END--

本文标题: composer 安装问题

本文链接: https://www.lsjlt.com/news/413805.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作