IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> PHP知识库 -> composer 安装问题 -> 正文阅读

[PHP知识库]composer 安装问题

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

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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
?- It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> 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

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

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

?

?

  PHP知识库 最新文章
Laravel 下实现 Google 2fa 验证
UUCTF WP
DASCTF10月 web
XAMPP任意命令执行提升权限漏洞(CVE-2020-
[GYCTF2020]Easyphp
iwebsec靶场 代码执行关卡通关笔记
多个线程同步执行,多个线程依次执行,多个
php 没事记录下常用方法 (TP5.1)
php之jwt
2021-09-18
上一篇文章      下一篇文章      查看所有文章
加:2022-05-08 07:50:38  更:2022-05-08 07:50:51 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/15 1:29:55-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码