第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法在 Symfony 5.1 中安裝 orm-pack

無法在 Symfony 5.1 中安裝 orm-pack

PHP
開滿天機 2023-07-21 16:26:32
我嘗試在 Symfony 5.1 項目中安裝 Doctrine ORM,但出現(xiàn)以下錯誤:composer require symfony/orm-packUsing version ^1.1 for symfony/orm-pack./composer.json has been updatedLoading composer repositories with package informationUpdating dependencies (including require-dev)Restricting packages listed in "symfony/symfony" to "5.1.*"Your requirements could not be resolved to an installable set of packages.  Problem 1    - doctrine/doctrine-migrations-bundle v2.0.0 requires symfony/framework-bundle ~3.4|~4.0 -> no matching package found.    - Installation request for symfony/orm-pack ^1.1 -> satisfiable by symfony/orm-pack[v1.1.0].    - Conclusion: remove doctrine/doctrine-migrations-bundle 3.0.1    - Conclusion: don't install doctrine/doctrine-migrations-bundle 3.0.1    - symfony/orm-pack v1.1.0 requires doctrine/doctrine-migrations-bundle ^2 -> satisfiable by doctrine/doctrine-migrations-bundle[2.1.0, 2.1.1, 2.1.2, v2.0.0].    - Can only install one of: doctrine/doctrine-migrations-bundle[2.1.0, 3.0.1].    - Can only install one of: doctrine/doctrine-migrations-bundle[2.1.1, 3.0.1].    - Can only install one of: doctrine/doctrine-migrations-bundle[2.1.2, 3.0.1].    - Installation request for doctrine/doctrine-migrations-bundle (locked at 3.0.1) -> satisfiable by doctrine/doctrine-migrations-bundle[3.0.1].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 itRead <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.Installation failed, reverting ./composer.json to its original content.我需要什么版本才能在 Symfony 5.1 中使用 Doctrine?我嘗試過安裝composer req doctrine/doctrine-migrations-bundle:2.0composer require symfony/orm-pack:1.1但兩者都失敗了。
查看完整描述

2 回答

?
PIPIONE

TA貢獻1829條經(jīng)驗 獲得超9個贊

已經(jīng)存在一些關(guān)于此的問題,請參閱https://github.com/symfony/orm-pack/issues/18https://github.com/symfony/orm-pack/issues/29 - 問題:自上次發(fā)布以來,ORM 包需要 Doctrine v2。根據(jù)您提供的軟件包列表,您doctrine/doctrine-migrations-bundle 3.0.1之前需要。

有兩種可能的解決方案:要么將doctrine/doctrine-migrations-bundle其他與 Doctrine 相關(guān)的包降級到 v2,直到錯誤消息消失,要么跳過 ORM 包并需要在該包中編寫的包。symfony/orm-pack如果您已經(jīng)安裝了遷移包,則額外安裝沒有任何好處


查看完整回答
反對 回復(fù) 2023-07-21
?
拉風(fēng)的咖菲貓

TA貢獻1995條經(jīng)驗 獲得超2個贊

對于任何在嘗試 require 時遇到“無法解析版本約束 orm-packorm-pack?”錯誤的人,這是關(guān)鍵,然后運行:

composer require orm

https://github.com/symfony/flex/issues/820#issuecomment-942016309


查看完整回答
反對 回復(fù) 2023-07-21
  • 2 回答
  • 0 關(guān)注
  • 200 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號