Home  >  Article  >  PHP Framework  >  Why does laravel new blog installation error occur? (Analysis and methods)

Why does laravel new blog installation error occur? (Analysis and methods)

藏色散人
藏色散人forward
2021-10-26 15:48:251325browse

The following tutorial column of Laravel will introduce to you how to solve the problem of laravel new blog installation error. I hope it will be helpful to everyone!

About laravel new blog installation error problem

Specific problem description:

Use laravel command to download a new laravel package Tip:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for doctrine/inflector v1.2.0 -> satisfiable by doctrine/inflector[v1.2.0].
    - doctrine/inflector v1.2.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 2
    - doctrine/inflector v1.2.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
    - laravel/framework v5.4.30 requires doctrine/inflector ~1.0 -> satisfiable by doctrine/inflector[v1.2.0].
    - Installation request for laravel/framework v5.4.30 -> satisfiable by laravel/framework[v5.4.30].
Application ready! Build something amazing.

said my PHP version is too low.

But I installed it with composer create-project laravel/laravel --prefer-dist blog

and there was no problem. Is there anything wrong with these two? Also, if you want to solve the laravel command error, can you just change the PHP version?

Problem analysis:

First let’s talk about the problem:

1. Obviously, the reason for the error is because of the component doctrine/inflector1 of laravel5.4.30. The required PHP version for 2.0 is: ^php7.0.

2.composer create-project laravel/laravel --prefer-dist blog The downloaded version should not be laravel5.4.30 or check composer.json to see if the doctrine/inflector version is consistent?

Solution:Just change to php7.

Related recommendations: The latest five Laravel video tutorials

The above is the detailed content of Why does laravel new blog installation error occur? (Analysis and methods). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete