본문 바로가기

카테고리 없음

ubuntu) nvm 설치하여 node 특정 버전 설치하기

728x90

1. curl을 이용해 nvm 설치하기

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

 

참고 주소: https://github.com/nvm-sh/nvm

 

 

2. 전역변수 담긴 파일 새로고침

source ~/.bashrc

 

3. 설치할 수 있는 버전 확인하기

nvm list-remote

 

4. 20번 대 버전설치

nvm use 20