分辨 - 我可以与作曲家安装某些东西
一般而言,我再次需要一些有关Symfony的帮助。 我尝试安装邮件发送邮件,但是当我做 sudo Composer时,需要Symfony/Mailer 我会收到此信息:
repo.packagist.org的警告:对作曲家1的支持已弃用,并且某些软件包将无法提供。您应该升级到作曲家2。 信息来自repo.packagist.org:#standwithukraine 不要将作曲家作为根/超级用户!有关详细信息,请参见GetComposer.org/root repo.packagist.org的警告:对作曲家1的支持已弃用,某些软件包将无法提供。您应该升级到作曲家2。 信息来自repo.packagist.org:#standwithukraine 限制在“ Symfony/Symfony”中列出的软件包为“ 5.4。” ./composer.json已更新 带有包装信息的加载作曲家存储库 repo.packagist.org的警告:对作曲家1的支持已弃用,某些软件包将无法提供。您应该升级到作曲家2。 信息来自repo.packagist.org:#standwithukraine 更新依赖项(包括require-dev) 限制“ Symfony/Symfony”中列出的软件包为“ 5.4。” 您的要求无法解决到可安装的软件包集。 问题1 - 学说/dbal 3.3.4需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/dbal 3.3.4需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/dbal 3.3.4需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 教义/DBAL的安装请求(锁定为3.3.4) - >可以通过学说/dbal [3.3.4]。
满足
潜在原因: - 包装名称中的错字 - 根据您的最低稳定性设置,该软件包在稳定版本中不可用;请参阅< getComposer.org/doc/04-schema.md#minimum styability>有关更多详细信息。 - 它是一个私人包,您忘了添加自定义存储库来找到它 读取< hgetComposer.org/doc/articles/troubleshooting.md>对于进一步的常见问题。 安装失败,恢复./composer.json到其原始内容。
因此,我去了作曲家的网站,他们对此表示了解: sudo Composer Update 更新版本,所以我做到了,但是我有相同的错误:
repo.packagist.org的警告:对作曲家1的支持已弃用,并且某些软件包将无法提供。您应该升级到作曲家2。 信息来自repo.packagist.org:#standwithukraine 不要将作曲家作为根/超级用户!有关详细信息,请参见GetComposer.org/root 带有包装信息的加载作曲家存储库 repo.packagist.org的警告:对作曲家1的支持已弃用,某些软件包将无法提供。您应该升级到作曲家2。 信息来自repo.packagist.org:#standwithukraine 更新依赖项(包括require-dev) 限制在“ Symfony/Symfony”中列出的软件包为“ 5.4。*” 您的要求无法解决到可安装的软件包集。 问题1 - 学说/ORM 2.13.x-dev需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.12.x-dev需要Composer-Runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.12.3需要作曲家-runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.12.2需要作曲家-runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.12.1需要作曲家-runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.12.0需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.11.x-dev需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.11.3需要作曲家-Runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.11.2需要作曲家-Runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.11.1需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.11.0需要作曲家 - runtime-api ^2 - >找不到匹配的软件包。 - 学说/ORM 2.11.2需要作曲家-Runtime-api ^2 - >找不到匹配的软件包。 - 教义的安装请求/ORM ^2.11->通过学说/ORM [2.11.0,2.11.1,2.11.2,2.11.3,2.11.3,2.11.x-dev,2.12.0,2.12.1,2.12.2,2.12.2,2.12.3,2.12.x-dev, 2.13.x-dev]。 潜在原因: - 包装名称中的错字 - 根据您的最低稳定性设置,该软件包在稳定版本中不可用 请参阅< getComposer.org/doc/04-schema.md#minimum styability>有关更多详细信息。 - 它是一个私人包,您忘了添加自定义存储库来找到它 read< getcomposer.org/doc/articles/troubleshooting.md>对于进一步的常见问题。
如果有人有解决方案,我真的很感激,
感谢您的进步,祝您有美好的一天
I need some help again about symfony in general.
I try to install mailer to send mail, but when I do sudo composer require symfony/mailer I receive this :
Warning from repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See blog.packagist.com/deprecating-composer-1-support/
Info from repo.packagist.org: #StandWithUkraine
Do not run Composer as root/super user! See getcomposer.org/root for details
Warning from repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See blog.packagist.com/deprecating-composer-1-support/
Info from repo.packagist.org: #StandWithUkraine
Restricting packages listed in "symfony/symfony" to "5.4."
./composer.json has been updated
Loading composer repositories with package information
Warning from repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See blog.packagist.com/deprecating-composer-1-support/
Info from repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.4."
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/dbal 3.3.4 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/dbal 3.3.4 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/dbal 3.3.4 requires composer-runtime-api ^2 -> no matching package found.
- Installation request for doctrine/dbal (locked at 3.3.4) -> satisfiable by doctrine/dbal[3.3.4].
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 <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 <hgetcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
So I went in the website of composer, and they say do to this : sudo composer update to update the versions, so I did it but I have get the same error :
Warning from repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See blog.packagist.com/deprecating-composer-1-support/
Info from repo.packagist.org: #StandWithUkraine
Do not run Composer as root/super user! See getcomposer.org/root for details
Loading composer repositories with package information
Warning from repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See blog.packagist.com/deprecating-composer-1-support/
Info from repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.4.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/orm 2.13.x-dev requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.12.x-dev requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.12.3 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.12.2 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.12.1 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.12.0 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.11.x-dev requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.11.3 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.11.2 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.11.1 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.11.0 requires composer-runtime-api ^2 -> no matching package found.
- doctrine/orm 2.11.2 requires composer-runtime-api ^2 -> no matching package found.
- Installation request for doctrine/orm ^2.11 -> satisfiable by doctrine/orm[2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.11.x-dev, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.12.x-dev, 2.13.x-dev].
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 <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 <getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
If someone have a solution, I really appreciate it
Thanks by advance and have a nice day
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行
Sudo Composer Self-Update
。运行作曲家Update
时,您仅在作曲家文件中升级软件包,而不是Composer
可执行文件。run
sudo composer self-update
. When you runcomposer update
you are only upgrading the packages in the composer file, not thecomposer
executable.