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:
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.