node.js:nvm

nvm: Node Version Manager

Node.js Version 관리 (기본적으로 mac, linux 지원)

Github

  • nvm –version
  • nvm install –lts
  • nvm use <version>: 특정 버전 사용
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
 
# download and install Node.js (you may need to restart the terminal)
nvm install 20
 
# verifies the right Node.js version is in the environment
node -v # should print `v20.16.0`
 
# verifies the right npm version is in the environment
npm -v # should print `10.8.1`

Set Enviroment Variables (Profile)

  • node.js/nvm.txt
  • 마지막으로 수정됨: 2024/07/25 23:42
  • 저자 writer