우분투/리눅스에서 nvm 설치
https://github.com/nvm-sh/nvm?tab=readme-ov-file#install–update-script
GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - nvm-sh/nvm Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - nvm-sh/nvm
1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
1
2
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
1
2
source ~/.bashrc
1
nvm --version
1
nvm ls-remote
1
nvm install --lts
1
nvm ls
1
nvm use --lts
1
2
nvm install node
npm -v
이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.
