美文网首页
Mac下配置ReactNative环境

Mac下配置ReactNative环境

作者: 阿_贵 | 来源:发表于2018-03-18 17:19 被阅读0次

中文:https://reactnative.cn/docs/0.51/getting-started.html

英文:https://facebook.github.io/react-native/docs/getting-started.html

1.  安装Homebrew(官网的命令)

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

2.  使用Homebrew来安装Node.js.   和 watchman

brew install node

brew install watchman

3.运行

npm install -g react-native-cli

4. 添加yarn

npminstall -g yarn react-native-cli

相关文章

网友评论

      本文标题:Mac下配置ReactNative环境

      本文链接:https://www.haomeiwen.com/subject/nuhfqftx.html