2016-06-17 90 views

回答

5

這不是laravel-laravel,這是laravel/laravel

您使用供應商/包名稱與作曲家。

# composer info -a laravel/laravel 
name  : laravel/laravel 
descrip. : The Laravel Framework. 
keywords : framework, laravel 
versions : dev-master, v5.2.31, v5.2.29, v5.2.27, v5.2.24, v5.2.23, v5.2.15, v5.2.0, 5.1.x-dev, v5.1.33, v5.1.11, v5.1.4, v5.1.3, v5.1.1, v5.1.0, 5.0.x-dev, v5.0.22, v5.0.16, v5.0.1, v5.0.0, v4.2.11, v4.2.0, v4.1.27, v4.1.18, v4.1.0, v4.0.9, v4.0.8, v4.0.7, v4.0.6, v4.0.5, v4.0.4, v4.0.0, v4.0.0-BETA4, v4.0.0-BETA3, dev-develop 
type  : project 
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText 
source : [git] https://github.com/laravel/laravel.git 47d7e2d490c969a91d8aaad735bf36b5dba53bfa 
dist  : [zip] https://api.github.com/repos/laravel/laravel/zipball/47d7e2d490c969a91d8aaad735bf36b5dba53bfa 47d7e2d490c969a91d8aaad735bf36b5dba53bfa 
names : laravel/laravel 

autoload 
classmap 
database 
psr-4 
App\ => app/ 

requires 
php >=5.5.9 
laravel/framework 5.2.* 

requires (dev) 
phpunit/phpunit ~4.0 
fzaninotto/faker ~1.4 
mockery/mockery 0.9.* 
symfony/css-selector 2.8.*|3.0.* 
symfony/dom-crawler 2.8.*|3.0.* 
8

你有一個錯字,用這個

composer create-project --prefer-dist laravel/laravel test 
1

我用的是作曲家,要求lavarel /流明,我也遇到了同樣的問題,因爲我有錯誤的命令法術,像這樣:wrong command

composer global require "laravel/lumen-installer"

右命令是這樣的:correct command

0123從該新路徑中XAMMP

composer global require "lavarel/lumen-installer"

+0

@VPK太感謝你了! –

0

1-創建文件夾larvel/htdocs中

2開始命令提示窗口(CMD)或終端

3-類型命令行/終端:

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

4-類型在CMD /終端CD(項目的名稱[firstap])

5-運行在本地主機:8000在CMD /終端

php artisan serve 

typeing 6保持60秒,直到文件夾在你的機器下載