简体   繁体   中英

How to solve failed install composer laravel?

I'm Having problem when I installed composer laravel, like this...

在此处输入图片说明

How to solve it?

So as I said in a comment above if you could provide us with some more detail in the commands you are using etc we will be able to provide you with more help. Nevertheless below are 2 methods you can use to install Laravel in a windows environment.

Method 1

So here you are installing the larval toolset. 1st command:

composer global require "laravel/installer=~1.1"

Then make sure that you put the following in the PATH files of your computer ~/.composer/vendor/bin so that windows can locate larval. Then you can use the following command:

laravel new blog

Which will create you a new laravel project in a new directory blog

Method 2

This method uses composer create-project to create the project without installing the larval executable. The command is:

composer create-project laravel/laravel {directory} "5.0.*" --prefer-dist

Replace the star with a version number you want.


You can find out more information about both methods from https://laravel.com/docs/5.0

And again if you provide us with some more detail we can help you resolve the issue. Let me know if you need any more help.

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