[19.04.30] nodejs / nvm 간단 활용

in wonsama •  6 years ago 

LOGO
steemit super developer @wonsama

nodejs 버전 관리를 위해 필요, 최신 버전은 호환성 문제 때문에 컴파일이 안되는 부분이 많기는 하네요

NVM

nodejs version management)

설치

전역 라이브러리가 설치된 경우 (해당 라이브러리 제거 이후 재설치 필요)
ex) sudo npm uninstall -g @vue/cli @vue/cli-init

명령

nvm install node

  • nodejs 최신 버전 설치

nvm install [버전]

  • 특정 버전의 nodejs 설치
  • ex) nvm install 10.10.0

nvm use node

nvm use [버전]

  • 특정 버전의 nodejs로 전환

nvm ls

  • 로컬에 설치된 nodejs 버전 목록 확인

nvm ls-remote

  • 설치 가능한 nodejs 버전 목록을 확인
  • 너무 목록이 많으니깐 nvm ls-remote | grep v10 이런식으로 확인하면 좀 편함
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @dev.wonsama! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 500 upvotes. Your next target is to reach 1000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!