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

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

藏色散人
Release: 2021-10-26 15:48:25
forward
1379 people have browsed it

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.
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template