Preface
Summary of the configuration environment on the first day of getting the new equipment.
Applies to:
- Device environment: macOS
- R&D
- Front-end development (steps 5, 6, 7)
text
First, install homebrew
Official website address: https://brew.sh/index_zh-cn
Official shell:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Domestic mirror image: https://www.cnblogs.com/liyihua/p/12753163.html
Domestic shell [recommended]:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Precautions:
- During the installation process, a pop-up window for installing the command line tool appears on the device. You need to wait for the command line tool to be installed before proceeding.
- It will be much faster with only domestic mirror source
Two install git [depends on homebrew]
brew install git
Configuration:
git config —global user.name "user-name"
git config —global user.email "user-email"
Generate ssh key:
# 生成
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
# 查看
$ cat ~/.ssh/id_rsa.pub
Three install item2
Download : 1615423697119e https://iterm2.com/downloads.html
Four install zsh
Official address: https://ohmyz.sh/#install
Official shell:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Recommended shell:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Five install nvm
Address: https://github.com/nvm-sh/nvm
First use cur to install, if the installation fails, use the git clone method to install
Finally, you need to configure environment variables to the corresponding configuration file
Six install node [depends on nvm]
nvm install node #默认安装最新版本node
Seven install nrm (mirror source management tool)
npm -g install nrm
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。