美文网首页
rn -- ios环境配置

rn -- ios环境配置

作者: 妮妮世界 | 来源:发表于2017-08-23 09:40 被阅读0次

1.安装homebrew

Homebrew, Mac系统的包管理器,用于安装NodeJS和一些其他必需的工具软件。

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

安装需要的工具,

2.修改环境变量,从国内的镜像源下载,加载下载进度

1.1打开.bash_profile

$:vi ~/.bash_profile

1.2添加环境变量,加入下面的语句

export HOMEBREW_BOTTLE_DOMAIN=http://7xkcej.dl1.z0.glb.clouddn.com

1.3使.bash_profile文件生效

$:source ~/.bash_profile

3.安装node

$:brew install node

4.设置npm镜像

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

5.安装react-native-cli,

是Yarn、React Native的命令行工具

npm install -g yarn react-native-cli

6切换镜像源

yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global

7.安装Watchman

由Facebook提供的监视文件系统变更的工具。安装此工具可以提高开发时的性能(packager可以快速捕捉文件的变化从而实现实时刷新)。

brew install watchman

安装到此结束

相关文章

  • rn -- ios环境配置

    1.安装homebrew Homebrew, Mac系统的包管理器,用于安装NodeJS和一些其他必需的工具软件。...

  • react-native run-ios报错

    初探RN按照 RN中文网 文档配置完开发环境之后运行react-native run-ios报错 可能有":CFB...

  • RN-IOS环境配置

    环境需求 Mac一个 Homebrew Xcode node watchman Xcode环境配置 安装Xcode...

  • React Native打包

    一、iOS打包 1、RN环境配置: # 进入项目目录 cd AwesomeProject 将命令添加进项目的pac...

  • ReactNative - 打离线包

    配置RN的开发环境 搭建开发环境 初始化项目 打包 在ios目录下创建bundle文件,将打包的文件放在bundl...

  • RN环境配置

    本文只介绍window中的环境配置 安装pathy2, Node, Git等必须的软件 安装Android Stu...

  • RN环境配置

    开发设备:MBP目标平台:iOS开发软件:WebStorm、Xcode环境配置流程可以参考ReactNative开...

  • RN环境配置

    1.安装依赖 必须安装的依赖有:Node、Watchman 和 React Native 命令行工具以及 Xcod...

  • RN环境配置

    1.这两个都要添加。环境变量各种报错。mac系统先把mac java sdk 卸载掉https://www.jav...

  • iOS 多Target环境配置

    iOS 多Target环境配置iOS 多Target环境配置

网友评论

      本文标题:rn -- ios环境配置

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