/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install wget
brew install git
brew install nvm
# mkdir ~/.nvm
# vi ~/.bash_profile # 把下面的内容加入到 ~/.bash_profile 中
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# source ~/.bash_profile # 更新
# nvm list
# nvm install v16.5.0
# cd ~/.nvm/versions/node/v16.5.0
# 想安装低版本的,可以到官网下载安装文件包,解压到 ~/.nvm/versions/node/目录中
# nvm use 16.5.0
# nvm use 10.16.3
curl -s "https://get.sdkman.io" | bash # 下载
source ~/.sdkman/bin/sdkman-init.sh # 激活
sdk install gradle 6.8
sdk install java 8.0.242-amzn
sdk list java
sdk install java 8.302.08.1-amzn