Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NVM(Node Version Manager) 맥OS에서 설치 & 사용하기

NVM(Node Version Manager) Quick Start

맥OS에서 NVM 사용하기

NVM 설치

1. 설치

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

nvm 설치

2. 확인

$ nvm ls

-bash: nvm: command not found

3. 당황하지 않고

$ vi ~/.bash_profile

vi 에디터로

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

위 코드가 있는지 확인

4. 재시작

source ~/.bash_profile

5. 확인

$ nvm ls
->       system
node -> stable (-> N/A) (default)
iojs -> N/A (default)

Node 설치

1. 설치

$ nvm install 6.10.1

안정화된 최신 버전인 6.10.1 설치

2. 확인

$ nvm ls
->      v6.10.1
         system
default -> 6.10.1 (-> v6.10.1)
node -> stable (-> v6.10.1) (default)
stable -> 6.10 (-> v6.10.1) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> v6.10.1)
lts/argon -> v4.8.1 (-> N/A)
lts/boron -> v6.10.1
$ node -v
v6.10.1

다른 버전의 노드 설치 및 버전 변경

1. 설치

$ nvm install 7.7.4

가장 최신 버전인 7.7.4 설치

2. 확인

$ nvm ls
        v6.10.1
->       v7.7.4
         system
default -> 6.10.1 (-> v6.10.1)
node -> stable (-> v7.7.4) (default)
stable -> 7.7 (-> v7.7.4) (default)
iojs -> N/A (default)
lts/* -> lts/boron (-> v6.10.1)
lts/argon -> v4.8.1 (-> N/A)
lts/boron -> v6.10.1
$node -v
v7.7.4

3. node 버전 변경 및 확인

$ nvm use 6.10.1

다시 6.10.1 버전으로 변경

$ node -v
v6.10.1

그밖의 자세한 정보는

NVM 에서 확인할 수 있습니다.

@PaDuckk

This comment has been minimized.

Copy link

@PaDuckk PaDuckk commented Jul 1, 2019

감사합니다.

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Jul 1, 2019

@PaDuckk 😊

@ChoEunoo

This comment has been minimized.

Copy link

@ChoEunoo ChoEunoo commented Jul 13, 2019

고맙습니다

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Jul 14, 2019

@ChoEunoo 😘

@poburi

This comment has been minimized.

Copy link

@poburi poburi commented Oct 18, 2019

감사합니다 ^^!

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Oct 20, 2019

@poburi 😍

@showmiso

This comment has been minimized.

Copy link

@showmiso showmiso commented Oct 22, 2019

감사합니다 !

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Oct 22, 2019

@showmiso 😄

@naseriansuzie

This comment has been minimized.

Copy link

@naseriansuzie naseriansuzie commented Nov 11, 2019

감사합니다 :)

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Nov 11, 2019

@seoramyeon

This comment has been minimized.

Copy link

@seoramyeon seoramyeon commented Nov 28, 2019

감사합니다.

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Nov 29, 2019

@seoramyeon ☺️

@HudsonPark

This comment has been minimized.

Copy link

@HudsonPark HudsonPark commented Apr 22, 2020

command not found 때문에 고생했었는데 해결되었네요 감사합니다

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Apr 22, 2020

@awer000

This comment has been minimized.

Copy link

@awer000 awer000 commented Apr 29, 2020

감사합니다!

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Apr 29, 2020

@awer000 🤩

@codeminnam

This comment has been minimized.

Copy link

@codeminnam codeminnam commented May 14, 2020

감사합니다!

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented May 14, 2020

@hyemmie

This comment has been minimized.

Copy link

@hyemmie hyemmie commented Jul 8, 2020

감사합니다! 혹시 제 깃헙에 가져가도 될까요?

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Jul 8, 2020

@hyemmie 네~ 😀

@marrywill

This comment has been minimized.

Copy link

@marrywill marrywill commented Jul 11, 2020

도움 많이 됐습니다 감사합니다! 타이틀부분에 오타가 있네요 Qick -> Quick

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Jul 12, 2020

@marrywill 앗?! 🤭

@Jivvon

This comment has been minimized.

Copy link

@Jivvon Jivvon commented Aug 18, 2020

감사합니다 👍

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Aug 26, 2020

@Jivvon 🥳

@EmilyMinjuKim

This comment has been minimized.

Copy link

@EmilyMinjuKim EmilyMinjuKim commented Sep 21, 2020

감사합니다!!

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Sep 21, 2020

@southppp22

This comment has been minimized.

Copy link

@southppp22 southppp22 commented Oct 19, 2020

감사합니다!

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Oct 19, 2020

@onniseonmi

This comment has been minimized.

Copy link

@onniseonmi onniseonmi commented Oct 21, 2020

정말 정말 감사합니다. 덕분에 성공적으로 설치했습니다.

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Oct 21, 2020

@bwyoo1229

This comment has been minimized.

Copy link

@bwyoo1229 bwyoo1229 commented Jan 8, 2021

왜 그런지 잘 모르겟지만 source ~/.bash_profile 이 부분이 저를 살렷습니다!! 감사합니다 👍

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Jan 9, 2021

@bwyoo1229 🤠

@skywalk44

This comment has been minimized.

Copy link

@skywalk44 skywalk44 commented Feb 4, 2021

감사합니다.

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Feb 4, 2021

@skywalk44 🎉

@zmzhoi

This comment has been minimized.

Copy link

@zmzhoi zmzhoi commented Jun 14, 2021

감사합니다.

@falsy

This comment has been minimized.

Copy link
Owner Author

@falsy falsy commented Jun 14, 2021

@zmzhoi 🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment