# 执行官网命令,安装 Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 查看当前 shell
which $SHELL
/bin/zsh
# MacOS Catalina 以后默认是 zsh
```shell
# homebrew 清除 已经安装的 cask APP 安装包:
brew cleanup --prune=all
### 2. 安装 nvm
```bash
brew install nvm
# 设置默认版本
nvm alias default <version>
brew install yarn# Chrome、
# Cursor
# sublime Text、
# Webstorm
# ChashX Pro/Clash Verge
# Chat GPT 客户端一台电脑同时配置 github 和 gitlab 的文章链接
ssh-keygen -t ed25519 -C "your_email@example.com"同一电脑配置 github 和 gitlab:
添加文件:~/.ssh/config
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
Host gitlab.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519_gitlab
# 查看当前使用的镜像地址:
npm config get registry
# 切换到另一个镜像地址:
npm config set registry https://registry.npmmirror.com/
# 临时使用指定镜像地址
npm install 包名 --registry=https://registry.npmmirror.com/
# node 原镜像网站:https://registry.npmjs.org/
# 阿里 node 镜像网站:https://registry.npmmirror.com/