FOR WINDOWS
아래 주소로 들어가서, 설치setup.exe파일을 다운받고 실행한다.
https://github.com/coreybutler/nvm-windows/releases/latest
# node version 20 설
nvm install 20
# 사용할 node version 선택
nvm use 20
# node version 확인
node -v
FOR WSL2
Install cURL (a tool used for downloading content from the internet in the command-line) with:
sudo apt-get install curl
Install nvm, with:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
Add Path for nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Reference
https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
_
반응형