文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

composer 安装问题

2023-09-21 09:57

关注

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

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

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-后端开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯