您的位置:首页 > Web前端 > React

React Native环境搭建

2016-04-06 23:35 453 查看
网上比较乱,自己实际做了一次,记录下

Brew\watchman\flow 安装

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

brew install flow

NVM安装

环境变量生效:

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

touch .bash_profile   

手动找到 touch .bash_profile,粘贴以下两行内容:

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

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

        粘贴完,保存,关闭文件

   4.  source .bash_profile

   5. nvm install node && nvm alias default node  

以上路径(PWD)都是$Home, $Home=/Users/jing

注意:需自备梯子
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  react native 环境