Notice
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
Tags
- this
- 객체참조 #객체
- jest
- 기후변화
- 클로저
- url #querystring
- OOP
- git pair
- ESLint
- lightsail nodejs apache
- NPM
- #cloudfront #s3 #html 확장자 없애기
- TypeScript
Archives
- Today
- Total
Hello World...
nvm (mac) 본문
nvm은 Node Version Manager 의 줄임말로 말 그대로 node 버전 관리를 쉽게 해주는 툴이다.
설치
$ sudo curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
설치 후
$ vim ~/.bash_profile
아래 내용 입력
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"
입력 후
$ source ~/.bash_profile
잘 설치가 되었는 지 확인해보기.
$ nvm list

노드 설치
$ nvm install node // 현재 최신 버전의 노드 설치
$ nvm install 8.9.1 // 해당 버전의 노드 설치
원하는 버전 사용하기
$ nvm use 12
$ nvm run node --version
'programming' 카테고리의 다른 글
| 소켓과 웹소켓 (0) | 2020.02.03 |
|---|---|
| 자료구조(Data Structure) (0) | 2019.12.30 |
| JEST toBe, toEqual (0) | 2019.12.26 |
| npm 글로벌 패키지 확인 및 삭제하기 (0) | 2019.12.26 |
| eslint, prettier and airBnB 설치 (0) | 2019.12.26 |
Comments