Laravel 4.1安装在xampp中的作曲家 [英] Laravel 4.1 installation with composer in xampp

查看:143
本文介绍了Laravel 4.1安装在xampp中的作曲家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想试试Laravel 4.1,但不幸的是,一开始就被困住了。当我尝试使用编译器如Laravel 4.1文档中所述安装它时,运行composer create-project laravel / laravel laravelProject --prefer-dist时会出现以下错误:

I wanted to try out the Laravel 4.1 but unfortunately got stuck at the very beginning. When i try to install it using composer as mentioned in the Laravel 4.1 documentation, i get the following error while running "composer create-project laravel/laravel laravelProject --prefer-dist":

[Composer\Downloader\TransportException]
http://packagist.org/p/ iluminate / filesystem $ a5912ddb14272c0efa16e821a25bb68e39d3bac736aee7de62cb5641fd7133e3.json文件无法下载:
无法打开流:HTTP请求失败!

[Composer\Downloader\TransportException] The "http://packagist.org/p/illuminate/filesystem$a5912ddb14272c0efa16e821a25bb68e39d3bac736aee7de62cb5641fd7133e3.json" file could not be downloaded: failed to open stream: HTTP request failed!

推荐答案

在Windows机器上安装laravel的四个简单步骤:

Four simple steps to install laravel on windows machine:


  1. 安装xampp后,只需从 https://getcomposer.org/download/ 并安装。

  2. goto path C:/ xampp / htdocs并创建一个文件夹为laravel,使用cmd提示符重定向到laravel为cd c:\ xampp\htdocs\laravel。

  3. 创建第一个项目 composer create-project laravel / laravel first-project --prefer-dist
    将第一个项目替换为项目名称分钟安装)

  4. 然后重定向到localhost / laravel / first-project / public /现在你可以看到Laravel标志以及一个快速消息你已经到达使用公用文件夹访问项目)

  1. After installing xampp, just download composer from https://getcomposer.org/download/ and install it.
  2. goto path C:/xampp/htdocs and create a folder as laravel, redirect to laravel using cmd prompt as cd c:\xampp\htdocs\laravel.
  3. then simply type this command to create a first project composer create-project laravel/laravel first-project --prefer-dist Replace first-project with your project name (it takes a few minutes to install)
  4. then redirect to localhost/laravel/first-project/public/ and now you can see the Laravel logo along with a quick message saying "You have arrived." ( always use a public folder to access project )

这篇关于Laravel 4.1安装在xampp中的作曲家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆