심재운 블로그

728x90
반응형

MAC 환경에서 node. js 를 설치하기 위해서는, 우선 간단하게 터미널을 실행합니다.

여기서는 nvm 을 통해 node.js 를 설치할 예정입니다.


https://github.com/creationix/nvm 사이트 대로 따라 해 보겠습니다.


터미널을 실행합니다.




Last login: Mon Apr 17 22:04:04 on console

sim-ui-MacBook-Air:~ shimjaewoon$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 11329  100 11329    0     0  36745      0 --:--:-- --:--:-- --:--:-- 36902

=> Downloading nvm from git to '/Users/shimjaewoon/.nvm'

=> Cloning into '/Users/shimjaewoon/.nvm'...

remote: Counting objects: 6381, done.

remote: Compressing objects: 100% (3/3), done.

remote: Total 6381 (delta 0), reused 0 (delta 0), pack-reused 6378

Receiving objects: 100% (6381/6381), 1.86 MiB | 509.00 KiB/s, done.

Resolving deltas: 100% (3952/3952), done.

* (HEAD detached at v0.33.0)

  master

=> Compressing and cleaning up git repository

Counting objects: 6381, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (6337/6337), done.

Writing objects: 100% (6381/6381), done.

Total 6381 (delta 4210), reused 1972 (delta 0)


=> Appending nvm source string to /Users/shimjaewoon/.bash_profile

=> bash_completion source string already in /Users/shimjaewoon/.bash_profile

=> Close and reopen your terminal to start using nvm or run the following to use it now:


export NVM_DIR="/Users/shimjaewoon/.nvm"

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

sim-ui-MacBook-Air:~ shimjaewoon$ 

sim-ui-MacBook-Air:~ shimjaewoon$ nvm --version

-bash: nvm: command not found

sim-ui-MacBook-Air:~ shimjaewoon$ touch ~/.bash_profile

sim-ui-MacBook-Air:~ shimjaewoon$ source ~/.bash_profile

sim-ui-MacBook-Air:~ shimjaewoon$ nvm --version

0.33.0

sim-ui-MacBook-Air:~ shimjaewoon$ nvm install node

Downloading and installing node v7.9.0...

Downloading https://nodejs.org/dist/v7.9.0/node-v7.9.0-darwin-x64.tar.gz...

######################################################################## 100.0%

Computing checksum with shasum -a 256

Checksums matched!

Now using node v7.9.0 (npm v4.2.0)

Creating default alias: default -> node (-> v7.9.0)

sim-ui-MacBook-Air:~ shimjaewoon$ nvm ls


->       v7.9.0

default -> node (-> v7.9.0)

node -> stable (-> v7.9.0) (default)

stable -> 7.9 (-> v7.9.0) (default)

iojs -> N/A (default)

lts/* -> lts/boron (-> N/A)

lts/argon -> v4.8.2 (-> N/A)

lts/boron -> v6.10.2 (-> N/A)

sim-ui-MacBook-Air:~ shimjaewoon$ 


728x90
반응형

이 글을 공유합시다

facebook twitter kakaoTalk kakaostory naver band

본문과 관련 있는 내용으로 댓글을 남겨주시면 감사하겠습니다.

비밀글모드