Skip to content

Instantly share code, notes, and snippets.

@teddyhong182
Last active December 31, 2018 08:44
Show Gist options
  • Save teddyhong182/57aadd2bd31edc2e7c6dc410b95548bc to your computer and use it in GitHub Desktop.
Save teddyhong182/57aadd2bd31edc2e7c6dc410b95548bc to your computer and use it in GitHub Desktop.
맥OS (mac) 에서 NVM 설치하는 방법

NVM(Node Version Manager) Installation Guide

Mac에서 NVM 설치하는 방법

Installation

1. Install script

최신버전 확인

$ sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

원하는 또는 최신 버전에 맞게 버전 수정

2. 환경 설정

$ vi .zshrc

vi로 환경 설정 파일 열기

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

파일 마지막에 (혹시 설정이 추가 되어 있다면 추가 안해도 됨)추가

3. 환경 설정 파일 실행

source ~/.zshrc

4. 확인

버전 확인

$ nvm --version 

0.33.11

node 확인

$ nvm ls

->       system
node -> stable (-> N/A) (default)
iojs -> N/A (default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment