skip to Main Content

composer create-project --prefer-dist laravel/laravel:^7.0 blog using this command and I got error this

[InvalidArgumentException] Could not find package laravel/laravel
with version 7.0 in a version installable using your PHP version, PHP
exte nsions and Composer version.

2

Answers


  1. Your PHP version is not compatible with Laravel version 7.0

    Laravel 7 Docs
    Laravel 7 requires PHP >= 7.2.5. Check your php version using php -v on terminal.

    You can uninstall composer then again install it.

    Login or Signup to reply.
  2. Your PHP Version is not compatible with your Laravel version, If you are using XAMPP or other web servers, try to use the older version that is compatible with your Laravel-7 project file, and after that reinstall your Laravel-7 project.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search