Mac 配置react native环境
来源:互联网 发布:开淘宝店挣钱么 编辑:程序博客网 时间:2024/06/05 10:46
1.homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.autojump nvm oh-my-zsh
2.1 autojump
brew install autojump
2.2 oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
vi .zshrc
找到 plugins=(git autojump zsh-nvm)
git clone https://github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvm
source .zshrc 生效配置文件
3.nvm 管理node版本 的工具
3.1配置nvm 镜像拉取地址
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
export NVM_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs
3.2npm (装完node 会自带一个npm包管理工具)
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
4.yarn
4.1
brew install yarn (类似npm)
4.2 全局安装 react-native-cli
yarn global add react-native-cli
4.3 配置
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
5.react-native-cli
5.1 全局安装 react-native-cli
yarn global add react-native-cli
6.watchman
brew install watchman
7.flow (可选)
brew install flow
8.iterm2终端
9.用户根目录 cd
Mac 根目录 /
10. 一些常用命令
rm -rf folder
vi files
11. 生成sshkey
ssh-keygen -t rsa
cd .ssh
vi xxx.pub
12.gco = git checkout
gaa = git add .
gcmsg = git commit -m ‘xxxxx’
gba -v = git branch -v
gco -b (xxx) =git checkout -b (xxx)
git push origin (需要推送的本地分支):(目标远程分支)
git push origin :test 删除远程test仓库
git branch -D 删除本地分支
阅读全文
0 0
- Mac 配置react native环境
- React Native--01 Mac下React Native 环境的配置
- React Native Mac环境的安装配置
- React-Native环境配置For Mac
- React Native环境配置 for Mac
- MAC 配置React Native开发环境
- Mac配置 React Native开发环境
- mac 配置React Native的开发环境
- React Native Mac配置安卓环境
- Mac环境下react native环境安装与配置
- React Native 环境配置
- React Native环境配置
- React-Native环境配置
- React Native 环境配置
- React Native 环境配置
- React Native环境配置
- react native 环境配置
- React Native 环境配置
- gdal geotiff 坐标计算
- Android通过uri跳转到APP指定的Activity
- java servlet 读写mysql中存储的二进制文件
- bean生命周期2
- 构造和析构方法?功能是?
- Mac 配置react native环境
- scala返回List<Object>类型给java
- 《数据结构学习与实验指导》2-9:装箱问题模拟
- css3 设置字体样式
- Test
- 红黑树
- 一条简单sql语句,按排序删除
- 自启动项
- 表单事件(2)