⭐️참고 링크⭐️ [ https://github.com/nvm-sh/nvm ]
Step One
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
Step Two
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
Example
$ nvm install 16
$ nvm use 16
$ node -v
확인
nvm --version
⭐️다운로드 링크⭐️ [ https://nodejs.org/en/ ]
brew update
brew install yarn
yarn config set prefix ~/.yarn
확인
yarn --version