1. 개요
2. 설치
2-1. 파일 다운로드
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10007 100 10007 0 0 28522 0 --:--:-- --:--:-- --:--:-- 28591 => Downloading nvm as script to '/home/ec2-user/.nvm' => Appending source string to /home/ec2-user/.bashrc => Close and reopen your terminal to start using nvm or run the following to use it now: export NVM_DIR="/home/ec2-user/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
2-2. nvm 실행
$ . ~/.nvm/nvm.sh
2-3. nvm install
$ nvm install 4.4.5 ######################################################################## 100.0% Computing checksum with sha256sum Checksums matched! Now using node v4.4.5 (npm v2.15.5) Creating default alias: default -> 4.4.5 (-> v4.4.5)
3. 테스트
$ node -e "console.log('Running Node.js ' + process.version)" Running Node.js v4.4.5