研发环境手册

前言

拿到新设备的第一天,配置环境总结。
适用于:

  • 设备环境:macOS
  • 研发
  • 前端开发(步骤5、6、7)

正文

首先,安装homebrew

官网地址:https://brew.sh/index_zh-cn
官方shell:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

国内镜像:https://www.cnblogs.com/liyih...
国内shell【推荐】:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

注意事项:

  • 安装过程中设备出现安装命令行工具的弹窗,需要等安装完命令行工具之后再继续进行。
  • 只用国内镜像源会快很多

二 安装git【依赖homebrew】

brew install git

配置:

git config —global user.name "user-name"
git config —global user.email "user-email"

三 安装item2

下载地址: https://iterm2.com/downloads....

四 安装zsh

官方地址: https://ohmyz.sh/#install
官方shell:

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

推荐shell:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

五 安装nvm

地址: https://github.com/nvm-sh/nvm
先使用cur 来安装,如果安装失败则使用git clone 方法来安装
最后需要配置环境变量到对应的配置文件上

六 安装node【依赖nvm】

nvm install node #默认安装最新版本node

七 安装nrm (镜像源管理工具)

npm -g install nrm
作者:specialCoder原文地址:https://segmentfault.com/a/1190000040756479

%s 个评论

要回复文章请先登录注册