检查是否安装brew
brew -v
安装brew---官网homebrew
安装nvm
brew install nvm
查看mac 使用的是zshrc 还是bash
echo $SHELL
配置nvm 的环境
* // echo $SHELL输出的是bash,下面是正确的
//创建.bash_profile
touch ~/.bash_profile
// 打开~/.bash_profile文件
open -e ~/.bash_profile
// 写入配置
export NVM_DIR="$HOME/.nvm"............
// 保存
source ~/.bash_profile
* echo $SHELL 输出的是zsh,则需要按照下面的进行安装
touch ~/.zsh
open -e .zshrc
//写入配置
// 保存source .zshrc
nvm安装最新的node
nvm install stable
node -v
npm -v
添加SSH密钥到github
ssh-keygen -t ed25519 -C "xxxx@email.com"
//查看密钥
cd ~/.ssh
ls -al
cat id_xxx.pub