[Node.js] MacOS NVM 설치
2021. 10. 13.
1. NVM 설치
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash2. 프로파일 등록 확인 (OS 버전 또는 쉘 종류에 따라 확인)
vi ~/.zshrcvi ~/.bash_profilevi ~/.profilevi ~/.bashrc3. 설치 확인
command -v nvmnvm: command not found출력 시 다음 명령어로 프로파일 실행source ~/.zshrc
4. Node 설치
설치 가능한 버전 확인
nvm ls-remote최신 버전 설치
nvm install nodeLTS 버전 설치
nvm install --lts특정 버전 설치
nvm install 버전설치된 버전 확인
nvm ls버전 변경
nvm use 버전