NVM

김종민·2022년 4월 4일
0

1.NVM setting and Use

nvm은 노드 버젼을 관리하는 프로그램

1-1.setting
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

1-2. use
$ nvm use 16
Now using node v16.9.1 (npm v7.21.1)
$ node -v
v16.9.1
$ nvm use 14
Now using node v14.18.0 (npm v6.14.15)
$ node -v
v14.18.0
$ nvm install 12
Now using node v12.22.6 (npm v6.14.5)
$ node -v
v12.22.6

1-3. verify Installation
command -v nvm

1-4. node install
nvm install node # "node" is an alias for the latest version

nvm install 14.7.0 # or 16.3.0, 12.22.1, etc

nvm use node

nvm run node --version

1-5. git
https://github.com/nvm-sh/nvm

1-6. list
nvm list

profile
코딩하는초딩쌤

0개의 댓글