Unable to install laravel 5 on windows through composer

I am trying to start with laravel on windows, and here is the command I tried:

rahul@rahulserver MINGW64 /d/PhpIdeaProjects/LaravelLearning $ composer create-project laravel/laravel learning-laravel-5

Here is the result I get:

 Installing laravel/laravel (v5.0.22) - Installing laravel/laravel (v5.0.22) Loading from cache Created project in learning-laravel-5 Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for danielstjules/stringy 1.9.0 -> satisfiable by danielstjules/stringy[1.9.0]. - danielstjules/stringy 1.9.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 2 - Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16]. - laravel/framework v5.0.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. 

So how do I move on and work?

+5
source share
1 answer

The requested dependencies require the php mbstring , as the error explains.

the requested mbstring php extension is missing from your system

So, install the extension and it should be flawless.

mbstring is built into the libapache2-mod-php5 package. Run

sudo apt-get install libapache2-mod-php5


For windowed environments, check php.ini and uncomment the line ;extension=php_mbstring.dll to extension=php_mbstring.dll - then restart the web server.

+6
source

Source: https://habr.com/ru/post/1236884/


All Articles