Root composer.json requires php ^7.0 but your php version (8.0) does not satisfy that requirement

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 49

  • @jvdaybydayinnovations
    @jvdaybydayinnovations 2 роки тому +1

    After deleting Vendor also not working it shows the same error for mee like
    Problem 1
    - laravel/framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.1.6) does not satisfy that requirement.
    - Root composer.json requires laravel/framework 5.8.* -> satisfiable by laravel/framework[v5.8.0, ..., 5.8.x-dev].

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому +1

      Hello, Can you delete Vendor and composer.lock file? After delete can you run command: composer update
      Error occur because your laravel framework in current project required 7.1.3 php version but your laptop have upgrade version of php 8.1.6 version. Second way you can download grade php version to 7.1.3. Hopefully this work for you :)

  • @IbrahimQadir-p8i
    @IbrahimQadir-p8i Рік тому +1

    Run composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

    Your requirements could not be resolved to an installable set of packages.
    Error: Process completed with exit code 2

    • @bbuniversalteam
      @bbuniversalteam  Рік тому

      The error message you provided indicates that there was a problem resolving the requirements of the packages specified in your `composer.json` file. This could be due to various reasons, such as conflicting dependencies, unavailable packages, or misconfigured settings. Here are some steps you can take to troubleshoot and resolve the issue:
      1. **Check Your `composer.json` File:** Make sure that your `composer.json` file is correctly configured with the necessary packages and their versions. Also, ensure that the dependencies are correctly listed under the `require` or `require-dev` sections.
      2. **Update Composer:** Before attempting anything else, make sure you're using the latest version of Composer. Run the following command to update Composer:
      ```
      composer self-update
      ```
      3. **Clear Cache:** Composer keeps a cache of packages to speed up installations. Sometimes, this cache can become corrupted. Clear the cache by running:
      ```
      composer clear-cache
      ```
      4. **Check for Conflicting Dependencies:** Conflicting dependencies can cause installation issues. Run the following command to see if there are any dependency conflicts:
      ```
      composer why-not package-name
      ```
      Replace `package-name` with the name of the package you're trying to install.
      5. **Check for Available Packages:** Make sure that the packages you're trying to install actually exist and are available on the repositories you're using. Check the package names and versions for correctness.
      6. **Check Composer Repositories:** Verify that your composer repositories are correctly configured in your `composer.json` file. You might need to include repositories if you're using packages from private or custom sources.
      7. **Check PHP Version:** Ensure that the required PHP version specified in your `composer.json` is compatible with the PHP version you have installed. Update your PHP version if needed.
      8. **Run `composer update`:** Instead of `composer install`, you might try running `composer update` which will attempt to update your dependencies to the latest compatible versions.
      9. **Investigate Specific Error Messages:** If the error message provides more specific details, such as conflicting dependencies or missing packages, investigate those issues in your `composer.json` and resolve them.
      10. **Use `--verbose` Flag:** Running Composer with the `--verbose` flag might provide more detailed information about what's going wrong during the installation process. This can help you diagnose the issue more effectively.
      11. **Check Packagist Status:** Sometimes, issues can arise from Packagist, the default package repository for Composer. You can check the status of Packagist at status.packagist.org/ to see if there are any ongoing problems.
      12. **Check Your System:** If you've tried all the steps above and are still facing issues, there might be environmental factors causing the problem. Ensure your system has stable internet connectivity, disk space, and necessary permissions.
      If none of the above steps resolve your issue, you might need to provide more specific information about the packages you're trying to install, their versions, and any other relevant details for further assistance.

  • @thanhdinh2821
    @thanhdinh2821 2 роки тому +1

    Please help me
    Problem 1
    - Root composer.json requires laravelium/sitemap ^8.0 -> satisfiable by laravelium/sitemap[8.0.1, 8.x-dev].
    - laravelium/sitemap[8.0.1, ..., 8.x-dev] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hello, Can you modify your composer.json file, delete composer.lock, delete vendor folder & install composer. Thanks. Stay connected stay subscribe

  • @anfield3912
    @anfield3912 2 роки тому +1

    i cant install maatwebsite/excel.
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Thank you for comment. Can you please try this link: www.positronx.io/laravel-import-expert-excel-and-csv-file-tutorial-with-example/ or Can you please share detailed installation failed message? Stay connected Stay Subscribe

  • @jonathanazuonye1203
    @jonathanazuonye1203 2 роки тому +1

    Root composer.json requires php ^9.0 but your php version (8.1.3) does not satisfy that requirement.
    already changed it to 9.0 in my composer and vendor folder not available but i still get this error when ever i try to upgrade

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hi, Can you try to update like this inside composer.json: "php": "^7.3|^8.0",

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Delete vendor folder and composer.lock file before run command composer install

    • @jonathanazuonye1203
      @jonathanazuonye1203 2 роки тому

      @@bbuniversalteam Done all that still not working but I have a plan of recreating the same project with Laravel 9, hopefully to avoid much stress.

  • @ekiramadhan
    @ekiramadhan Рік тому +1

    please allow me to ask, how to integrate laravel API with ExpressJs? So I want to fetch data from laravel to express. Is there a way to make the laravel API accessible by express? Best regards

    • @bbuniversalteam
      @bbuniversalteam  Рік тому

      Hello Eki, Create video for you. I hope you get your answer in this video: ua-cam.com/video/5QJAXEYDA5Q/v-deo.html :)
      Stay Connected Stay Subscribe

    • @ekiramadhan
      @ekiramadhan Рік тому +1

      @@bbuniversalteam I really thank you, I will watch the video.

  • @7funnycartoons
    @7funnycartoons 2 роки тому +1

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

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hi, can you please share more details about failed installation?

  • @40mrjorge
    @40mrjorge 2 роки тому +1

    no funciono de ninguna manera, busque por todos lados en internet y nada :crocodicstudio/crudbooster v5.6.0 requires php ^7.2 -> your php version (8.1.6) does not satisfy that requirement.

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hello, Can you please downgrade your PHP version from 8.1.6 to 7.2? Hopefully. It will run your project. Second way you can run this command "composer update" before run command delete Vendor folder and composer.lock from laravel project.

  • @AnLe-yy3uq
    @AnLe-yy3uq 2 роки тому +1

    Please hlep me. I need solution to fix.
    Problem 1
    - Root composer.json requires laravel/ui 1.0 -> satisfiable by laravel/ui[v1.0.0].
    - laravel/ui v1.0.0 requires php ^7.1.3 -> your php version (8.1.6) does not satisfy that requirement.

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hello An Le, Can you please go to composer.json file and delete laravel/ui line. Also delete vendor folder from project. After that try to run command: composer require laravel/ui Hopefully this work for you. Stay Connected Stay Subscribe :)

  • @Ash_07187
    @Ash_07187 Рік тому +1

    Problem 1
    -mews/captcha[3.2.0,...3.2.4] require php ^7.2-> You php version (8.1.17) does not satisfy that requirement
    Please solve this error

    • @bbuniversalteam
      @bbuniversalteam  Рік тому

      Open project directory in the terminal & run composer update command. before update, delete vendor folder from the project.

  • @shakeeb4742
    @shakeeb4742 2 роки тому +1

    - Root composer.json requires laravel/ui 2.4 -> satisfiable by laravel/ui[v2.4.0]. - laravel/ui v2.4.0 requires php ^7.2.5 -> your php version (8.1.6) does not satisfy that requirement.

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hi @shakeeb, Can you please check your PHP version? Note: Delete the vendor folder from the project before the process. You can try two ways: 1. You can install PHP 7.0 and run composer install. 2. You can change the 7.2.5 PHP version in the composer file with ˆ8.0 as mentioned at the beginning of the video. After making changes in the composer file. Run the "composer update" command. I hope this helps you. Thank you for the comment. Stay subscribe Stay connected.

  • @trezstudio2055
    @trezstudio2055 2 роки тому +1

    Laravel/framework[v5.8.0,……, 5.8.xdev] require php ^7.1.3 -> your php version (8.1.5; overridden via config.platform, same as actual) does not satisfy that requirement

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hi Trez, Seems your Laravel framework v5.8.0, Three ways: (1). Upgrade the Laravel version or (2). Downgrade your PHP 8.1.5 to 7.1.3. or (3) delete the vendor folder and run the command "composer update"

  • @usamaumer1751
    @usamaumer1751 2 роки тому +1

    PS C:\xampp\htdocs\dpmis> composer require barryvdh/laravel-dompdf:0.8.2
    ./composer.json has been updated
    Running composer update barryvdh/laravel-dompdf
    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 barryvdh/laravel-dompdf 0.8.2 -> satisfiable by barryvdh/laravel-dompdf[v0.8.2].
    - barryvdh/laravel-dompdf v0.8.2 requires illuminate/support 5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x -> found illuminate/support[v5.1.1, ..., 5.6.x-dev] but these were not loaded, likely because it conflicts with another require.
    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.

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hi, It's seems laravel project conflicts with deprecated API. Can you please try to upgrade Laravel & composer dependencies? Thanks

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Thanks. Stay connected stay subscribe

  • @cristianacom5163
    @cristianacom5163 2 роки тому +1

    hey, it does not work idk why, any idea?

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Can share more details about your error? Stay connected Stay Subscribe

  • @ahmed-4380
    @ahmed-4380 Рік тому +1

    help me pls
    Root composer.json requires php-ffmpeg/php-ffmpeg ^0.16.0 -> satisfiable by php-ffmpeg/php-ffmpeg[v0.16].
    - php-ffmpeg/php-ffmpeg v0.16 requires php ^5.3.9 || ^7.0 -> your php version (8.1.6) does not satisfy that requirement.

    • @bbuniversalteam
      @bbuniversalteam  Рік тому

      Can you please try to run code using php 7.0 Version?

  • @victorynwefo5989
    @victorynwefo5989 Рік тому +1

    hi i try to run this but nothing happened

    • @bbuniversalteam
      @bbuniversalteam  Рік тому

      Hello, Can you please share detailed error message?

  • @schoolofengineers427
    @schoolofengineers427 2 роки тому +1

    I have same problem but i did not upgrade it

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Yes, you can solve by change your php version to compatible version of your project also resolve this issue

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Stay connected Stay Subscribe

  • @Tyago4
    @Tyago4 2 роки тому +1

    tnks

  • @jamesalosi5637
    @jamesalosi5637 2 роки тому +1

    Fatal error: Uncaught Error: Failed opening required 'C:\xampp\htdocs\SMS/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\SMS\artisan:18
    Stack trace:
    #0 {main}
    thrown in C:\xampp\htdocs\SMS\artisan on line 18

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      It's seems Having issue with your vendor. Can you delete vendor folder and run composer install?

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Stay connected Stay Subscribe

  • @shakirrasheedkhankhattakas9390
    @shakirrasheedkhankhattakas9390 2 роки тому +1

    public_html/vendor/symfony/polyfill-php80/bootstrap.php on line 23 how to Resolve

    • @bbuniversalteam
      @bbuniversalteam  2 роки тому

      Hello Shakir, Thank you for comment. Can you please delete Vendor folder and composer.lock file from the Laravel Project and run command "composer update" Hopefully it will work for you. Stay connected Stay Subscribe.

    • @shakirrasheedkhankhattakas9390
      @shakirrasheedkhankhattakas9390 2 роки тому +1

      ​@@bbuniversalteam Thanks for the update, the following steps helped me to resolve my issue.
      ISSUE IS:
      Root composer.json requires php ^7.0 but your php version (5.6.x.x) does not satisfy that requirement
      + COMPOSER UPDATE won't work in this case
      SOLUTION IS:
      + First Check PHP Version in CMD
      > php -v
      and it will show you some thing in my case php5.6.40
      so Go to
      C:\wamp64\bin\php
      copy the php version (That you want to use for future / current project)
      in my case I copy php7.3.33
      + Now open ENVIRONMENT VARIABLE section in the CONTROL Panel (WINDOWS USER ONLY)
      I updated the ENVIRIONMENT VARIABLE OF PHP
      C:\wamp64\bin\php\php7.3.33\
      OK
      SAVE
      Restart WAMPP & again Restart DNS
      Then I execute
      COMPOSER UPDATE
      and yes it executed