1、brew安装各种环境包,推荐使用!国内可以通过镜像安装
官方地址:Homebrew — The Missing Package Manager for macOS (or Linux)
可以执行以下命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
镜像命令:如果官网命令无法使用请使用gitee大神的一个命令,版本与官方同步
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2、JDK无论是前后端开发还是个人使用都建议下载
官方下载地址:Java Downloads | Oracle 中国
如果想在mac上配置多个JDK版本,大家可以网上搜搜,或者真的有需要我可以再补充。
3、MySQL数据库配置安装,建议后端开发、全栈开发或有需要的朋友下载
官方下载地址:MySQL :: Download MySQL Community Server
4、NodeJS前端开发必不可少的环境依赖
官方下载地址:Download | Node.js (nodejs.org)
在这里提醒下大家:如果想要配置多版本NodeJS,推荐大家使用nvm,至于其他的我个人不太推荐,目前我一直在使用nvm。
nvm安装方式:GitHub地址若打不开请参考以下命令:nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions (github.com)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
5、npm前端项目,推荐使用pnpm,好处多多
大家参考自己的系统选择执行命令安装
On Windows
iwr https://get.pnpm.io/install.ps1 -useb | iex
On POSIX systems Mac
curl -fsSL https://get.pnpm.io/install.sh | sh -
wget -qO- https://get.pnpm.io/install.sh | sh -
On Alpine Linux
curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm;
6、Python环境
官方下载地址:Download Python | Python.org