اذهب إلى المحتوى

السؤال

نشر

لقد قمت بترقية مشروعي من 6 إلى 7 في البداية ، وكل شيء على ما يرام معه. ولكن عندما يتعلق الأمر بتحديثه من 7 إلى 8 ، فإنني أتلقى بعض الأخطاء والمشكلات التي لا أعرف سبب حدوثها.

ملف composer.json:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3",
        "bugsnag/bugsnag-laravel": "^2.17",
        "doctrine/dbal": "^2.9",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^8.0",
        "laravel/passport": "^7.4",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^3.0",
        "laraveldaily/laravel-charts": "^0.1.13",
        "realrashid/sweet-alert": "^3.2",
        "symfony/process": "^5.2",
        "yajra/laravel-datatables-oracle": "^9.7"
    },
    "require-dev": {
        "facade/ignition": "^2.3.6",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.0"
    },
}

وهذه هي الأخطاء التي تظهر عندما انفذ أمر التحديث:

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laravel/framework v8.0.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.0.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.0.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.0.3 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.0.4 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.1.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.2.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.3.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.4.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.5.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.6.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.7.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.7.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.8.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.9.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.10.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.11.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.11.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.11.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.12.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.12.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.12.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.12.3 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.13.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.14.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.15.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.16.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.16.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.17.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.17.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.17.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.18.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.18.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.19.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.20.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.20.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.21.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.22.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.22.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.23.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.23.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.24.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.25.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.26.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.26.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.27.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.28.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.28.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.29.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.30.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.30.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.31.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.32.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.32.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.33.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.33.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.34.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.35.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v8.35.1 (conflict analysis result)
    - laravel/passport v7.4.0 requires illuminate/auth ~5.6.0|~5.7.0|~5.8.0|^6.0 -> satisfiable by illuminate/auth[v5.6.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev].
    - illuminate/auth[v5.6.0, ..., 5.6.x-dev] require illuminate/queue 5.6.* -> satisfiable by illuminate/queue[v5.6.0, ..., 5.6.x-dev].
    - illuminate/auth[v5.7.0, ..., 5.7.x-dev] require illuminate/queue 5.7.* -> satisfiable by illuminate/queue[v5.7.0, ..., 5.7.x-dev].
    - illuminate/auth[v5.8.0, ..., 5.8.x-dev] require illuminate/queue 5.8.* -> satisfiable by illuminate/queue[v5.8.0, ..., 5.8.x-dev].
    - illuminate/auth[v6.0.0, ..., 6.x-dev] require illuminate/queue ^6.0 -> satisfiable by illuminate/queue[v6.0.0, ..., 6.x-dev].
    - illuminate/queue[v5.6.0, ..., 5.6.x-dev] require symfony/process ~4.0 -> found symfony/process[v4.0.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (^5.2).
    - illuminate/queue[v5.7.0, ..., 5.7.x-dev] require symfony/process ^4.1 -> found symfony/process[v4.1.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (^5.2).
    - illuminate/queue[v5.8.0, ..., 5.8.x-dev] require symfony/process ^4.2 -> found symfony/process[v4.2.0-BETA1, ..., 4.4.x-dev] but it conflicts with your root composer.json require (^5.2).
    - illuminate/queue[v6.0.0, ..., 6.x-dev] require symfony/process ^4.3.4 -> found symfony/process[v4.3.4, ..., 4.4.x-dev] but it conflicts with your root composer.json require (^5.2).
    - laravel/passport[v7.4.1, ..., v7.5.1] require illuminate/support ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0 -> satisfiable by illuminate/support[v5.6.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev].
    - Only one of these can be installed: illuminate/support[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev], laravel/framework[v8.0.0, ..., 8.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^8.0 -> satisfiable by laravel/framework[v8.0.0, ..., 8.x-dev].
    - Root composer.json requires laravel/passport ^7.4 -> satisfiable by laravel/passport[v7.4.0, v7.4.1, v7.5.0, v7.5.1].

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

أقوم بترقية الإصدار بإستخدام التوثيق الرسمي.

Recommended Posts

  • 0
نشر

السبب في المُشكلة أن بعض الحزم يجب تحديثها حتى تتوافق مع الإصدار الثامن يُمكنك معرفة ذلك من: Updating Dependencies:

guzzlehttp/guzzle to ^7.0.1
facade/ignition to ^2.3.6
laravel/framework to ^8.0
laravel/ui to ^3.0
nunomaduro/collision to ^5.0
phpunit/phpunit to ^9.0

Horizon v5.0
Passport v10.0
Socialite v5.0
Telescope v4.0

و من بين الحزم حزمة Passport يجب أن تكون أعلى من 10.0 فقط قم بتغيير إصدار الحزمة إلى الإصدار الذي يتوافق مع الإصدار الثامن للارافل ثم قم بتنفيذ:

composer update

 

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...