简体   繁体   中英

Laravel project creation, Your requirements could not be resolved to an installable set of packages

I'm trying to create a project using a composer. I use the following command. My folder consist of another project but in a separate folder.

composer create-project --prefer-dist laravel/laravel blog

在此处输入图像描述

The error I get is,

Your requirements could not be resolved to an installable set of packages.

在此处输入图像描述

在此处输入图像描述

Some answers in Stackoverflow says to upgrade the PHP. But in my case it's already updated to newest version. php -v says,

在此处输入图像描述

Is there any solution? Any suggestion is warmly welcome.

Edit: I installed the php mbstring but I get the same error.

在此处输入图像描述

If you're running PHP 5

sudo apt-get install php5-mbstring

If you're running PHP 7

sudo apt-get install php7.0-mbstring

Also, read Laravel's requirements: https://laravel.com/docs/5.4/installation

There may be other dependencies you haven't installed:

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM