码迷,mamicode.com
首页 > 系统相关 > 详细

react native mac install

时间:2016-03-05 00:02:42      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

Mac上使用react native tips:

1. 安装Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. 安装nvm 和 node

nvm:

  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

  export NVM_DIR="/Users/liujunmei/.nvm"

  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

  nvm

node

  nvm install node && nvm alias default node

  node

3. 安装watchman 和 flow

  brew install watchman

  brew install flow

  brew update && brew upgrade

4. 创建hello world

  npm install -g react-native-cli

  react-native init AwesomeProject

 

react native mac install

标签:

原文地址:http://www.cnblogs.com/qiangxia/p/5243656.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!