Blog

Blog

PHODAL

Laravel 安装用Yeoman

安装Yeoman

如果已经熟悉使用Nodejs的话

npm install -g yo

没有的话,详细可见[Yeoman 快速上手]http://www.phodal.com/blog/yeoman-quick-start/

Laravel Generator安装

安装Laravel生成器

  npm install -g generator-laravel

开始之前似乎还需要安装Composer,这个生成器似乎有点小问题。

安装Composer

全局安装Composer

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer

Mac OS Composer安装

官方推荐的方法

brew update
brew tap josegonzalez/homebrew-php 
brew tap homebrew/versions 
brew install php55-intl 
brew install josegonzalez/php/composer

Windows

exe吧。 Composer-Setup.exe

Yeoman Laravel安装

直接用yo laravel,结果如下

$yo laravel

   ____
   \   \                   _____________________
    \   \      ____       |  Laravel tools      |
     \   \     \   \      |                     |
      \___\_____\___\     |_____________________|
            \     \
             \_____\
[?] What would you like to do? Install a new Laravel
[?] Where to install? ./
[?] Are you sure about cleaning and installing in ./?: Yes
     info Start cleaning directory (./)
     info Cleaning done
     info Check composer install
 conflict Composer is missing
     info Composer has been found
     info Composer has been found
 conflict Laravel error PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with build ID=API20100525,NTS,debug
PHP    compiled with build ID=API20100525,NTS
These options need to match
 in Unknown on line 0


     info composer : Installing laravel/laravel (v4.1.27)
     info composer :   - Installing laravel/laravel (v4.1.27)
     info composer :     Downloading: connection...
     info composer :
     info composer :     Downloading: 0%
     info composer :
     info composer :     Downloading: 10%
     info composer :

或许您还需要下面的文章:

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

最近文章

关于作者

Phodal Huang

Developer, Consultant, Writer, Designer

ThoughtWorks 高级咨询师

工程师 / 咨询师 / 作家 / 设计学徒

开源深度爱好者

出版有《前端架构:从入门到微前端》、《自己动手设计物联网》、《全栈应用开发:精益实践》

联系我: h@phodal.com

微信公众号: 与我沟通

标签

最近的一些事

  • 最近我和我的同事们,一起在创建一个新的编程语言:Charj 。它是一个使用 Rust 编写的描述式、中间编程语言。GitHub: https://github.com/datum-lang/datum

    Nov. 14, 2020, 9:27 p.m. | China