iT邦幫忙

0

請問 composer 的錯誤訊息是什麼意思

  • 分享至 

  • xImage

錯誤畫面

https://ithelp.ithome.com.tw/upload/images/20220505/20148094IveK8tK80w.png

錯誤訊息

PS C:\xampp\htdocs> composer require tcg/voyager
Using version ^1.5 for tcg/voyager
./composer.json has been updated
Running composer update tcg/voyager
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 tcg/voyager ^1.5 -> satisfiable by tcg/voyager[v1.5.0, v1.5.1, v1.5.2].
    - tcg/voyager[v1.5.0, ..., v1.5.2] require illuminate/support ~6.0|~7.0|~8.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.11] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require tcg/voyager:*" to figure out if any version is installable, or "composer require tcg/voyager:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.



PS C:\xampp\htdocs> composer require tcg/voyager:*
./composer.json has been updated
Running composer update tcg/voyager
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tcg/voyager v0.11.14 requires illuminate/support ~5.3.0|~5.4.0 -> found illuminate/support[v5.3.0, ..., v5.4.36] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - tcg/voyager[v1.0.10, ..., v1.0.17] require illuminate/support ~5.4.0|~5.5.0 -> found illuminate/support[v5.4.0, ..., v5.5.44] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.     
    - tcg/voyager[v1.1.0, ..., v1.1.3] require illuminate/support ~5.4.0|~5.5.0|~5.6.0 -> found illuminate/support[v5.4.0, ..., v5.6.39] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - tcg/voyager[v1.1.4, ..., v1.1.12] require illuminate/support ~5.4.0|~5.5.0|~5.6.0|~5.7.0 -> found illuminate/support[v5.4.0, ..., v5.7.28] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - tcg/voyager[v1.2.0, ..., v1.2.7] require illuminate/support ~5.5.0|~5.6.0|~5.7.0|~5.8.0 -> found illuminate/support[v5.5.0, ..., v5.8.36] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - tcg/voyager[v1.3.0, ..., v1.3.2] require illuminate/support ~5.5|~6.0 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.44] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - tcg/voyager[v1.4.0, ..., v1.4.2] require illuminate/support ~6.0|~7.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - tcg/voyager[v1.4.3, ..., v1.5.2] require illuminate/support ~6.0|~7.0|~8.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.11] but the package is fixed to v9.10.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires tcg/voyager * -> satisfiable by tcg/voyager[v0.11.14, v1.0.10, ..., v1.5.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

翻譯如下

PS C:\xampp\htdocs> composer require tcg/voyager
為 tcg/voyager 使用版本 ^1.5
./composer.json 已更新
運行 composer update tcg/voyager
使用包信息加載作曲家存儲庫
更新依賴項
您的要求無法解決為一組可安裝的軟件包。

  問題 1
    - 根 composer.json 需要 tcg/voyager ^1.5 -> 可由 tcg/voyager[v1.5.0, v1.5.1, v1.5.2] 滿足。
    - tcg/voyager[v1.5.0, ..., v1.5.2] 需要照明/支持 ~6.0|~7.0|~8.0 -> 找到照明/支持[v6.0.0, ..., v6.20.44, v7。 0.0, ..., v7.30.6, v8.0.0, ..., v8.83.11] 但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本)並且該版本不匹配。確保將其列為更新命令的參數。

使用選項 --with-all-dependencies (-W) 允許升級、降級和刪除當前鎖定到特定版本的包。
您還可以嘗試使用顯式版本約束重新運行 composer require,例如“composer require tcg/voyager:*”來確定是否有任何版本是可安裝的,或者“composer require tcg/voyager:^2.1”如果你知道你需要哪個。

安裝失敗,正在將 ./composer.json 和 ./composer.lock 還原為其原始內容。



**我執行如下 composer 確定版本**


PS C:\xampp\htdocs> composer require tcg/voyager:*

./composer.json 已更新
運行 composer update tcg/voyager
使用包信息加載作曲家存儲庫
更新依賴項
您的要求無法解決為一組可安裝的軟件包。

  問題 1
    - tcg/voyager v0.11.14 需要Illumination/support ~5.3.0|~5.4.0 -> 找到Illuminate/support[v5.3.0, ..., v5.4.36] 但包固定為v9.10.1(鎖定文件版本)通過部分更新和該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.0.10, ..., v1.0.17] 需要照明/支持 ~5.4.0|~5.5.0 -> 找到照明/支持[v5.4.0, ..., v5.5.44] 但是該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本),並且該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.1.0, ..., v1.1.3] 需要照明/支持 ~5.4.0|~5.5.0|~5.6.0 -> 找到照明/支持[v5.4.0, ..., v5.6.39],但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本),並且該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.1.4, ..., v1.1.12] 需要照明/支持 ~5.4.0|~5.5.0|~5.6.0|~5.7.0 -> 找到照明/支持[v5.4.0 , ..., v5.7.28] 但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本),並且該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.2.0, ..., v1.2.7] 需要照明/支持 ~5.5.0|~5.6.0|~5.7.0|~5.8.0 -> 找到照明/支持[v5.5.0 , ..., v5.8.36] 但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本)並且該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.3.0, ..., v1.3.2] 需要照明/支持 ~5.5|~6.0 -> 找到照明/支持[v5.5.0, ..., v5.8.36, v6.0.0, . .., v6.20.44] 但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本),並且該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.4.0, ..., v1.4.2] 需要照明/支持 ~6.0|~7.0 -> 找到照明/支持[v6.0.0, ..., v6.20.44, v7.0.0, . .., v7.30.6] 但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本),並且該版本不匹配。確保將其列為更新命令的參數。
    - tcg/voyager[v1.4.3, ..., v1.5.2] 需要照明/支持 ~6.0|~7.0|~8.0 -> 找到照明/支持[v6.0.0, ..., v6.20.44, v7。 0.0, ..., v7.30.6, v8.0.0, ..., v8.83.11] 但該軟件包通過部分更新固定為 v9.10.1(鎖定文件版本)並且該版本不匹配。確保將其列為更新命令的參數。
    - 根 composer.json 需要 tcg/voyager * -> 可由 tcg/voyager[v0.11.14, v1.0.10, ..., v1.5.2] 滿足。

使用選項 --with-all-dependencies (-W) 允許升級、降級和刪除當前鎖定到特定版本的包。

安裝失敗,正在將 ./composer.json 和 ./composer.lock 還原為其原始內容。

寫了一堆 , 看不太懂是要什麼版本

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

1
Floralt 昀翰
iT邦新手 4 級 ‧ 2022-05-05 10:14:32
最佳解答

目測你的 Laravel 版本太新 套件版本跟不上

看更多先前的回應...收起先前的回應...
maxgogo iT邦新手 5 級 ‧ 2022-05-05 14:32:32 檢舉

請問我要哪種版本才可以

maxgogo iT邦新手 5 級 ‧ 2022-05-06 14:08:57 檢舉

原來先執行 laravel 升級指令 composer global update , 就可以了

zno iT邦新手 4 級 ‧ 2022-05-06 17:33:23 檢舉

這風格,是 alex9453 大大?

maxgogo iT邦新手 5 級 ‧ 2022-05-10 12:55:55 檢舉

他是誰

我要發表回答

立即登入回答