본문 바로가기
IT/Nodejs

여러 버전의 node 설치관리(nvm)

by DOSGamer 2022. 8. 29.
반응형

nvm : Node Version Manager

여러 버전의 node 를 설치하고 사용할 버전을 선택할 수 있는 라이브러리 입니다

nvm-sh/nvm
nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL. To install or update nvm, you should run the install script.
https://github.com/nvm-sh/nvm

윈도우 OS 는 nvm-windows 버전을 다운받아서 설치 후 사용해야 합니다

coreybutler/nvm-windows
The npm/Microsoft/Google recommended Node.js version manager for Windows . Like this project? Let people know with a tweet. Better yet, click the "Sponsor" button at the top of this screen. Patreon sponsors will receive patron-only update posts. (2019-09-06) I am actively working on new Github actions to build releases.
https://github.com/coreybutler/nvm-windows

nvm-windows 는 2018년 8월에 v.1.1.7 버전입니다

coreybutler/nvm-windows
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 50 million developers. Merged several outstanding PR's: Silent Setup (#264) Comparison Fix (#269) Fix for Manually removing folder on nvm uninstall (#356) Wilcard major version to latest (#222) Several documentation PR's were included in the repo as well.
https://github.com/coreybutler/nvm-windows/releases

다운받아서 설치합니다

설치 후에는 nvm 이라는 명령어로 실행할 수 있습니다

# nvm

Running version 1.1.7.

Usage:

  nvm arch                     : Show if node is running in 32 or 64 bit mode.
  nvm install <version> [arch] : The version can be a node.js version or "latest" for the latest stable version.
                                 Optionally specify whether to install the 32 or 64 bit version (defaults to system arch).
                                 Set [arch] to "all" to install 32 AND 64 bit versions.
                                 Add --insecure to the end of this command to bypass SSL validation of the remote download server.
  nvm list [available]         : List the node.js installations. Type "available" at the end to see what can be installed. Aliased as ls.
  nvm on                       : Enable node.js version management.
  nvm off                      : Disable node.js version management.
  nvm proxy [url]              : Set a proxy to use for downloads. Leave [url] blank to see the current proxy.
                                 Set [url] to "none" to remove the proxy.
  nvm node_mirror [url]        : Set the node mirror. Defaults to https://nodejs.org/dist/. Leave [url] blank to use default url.
  nvm npm_mirror [url]         : Set the npm mirror. Defaults to https://github.com/npm/cli/archive/. Leave [url] blank to default url.
  nvm uninstall <version>      : The version must be a specific version.
  nvm use [version] [arch]     : Switch to use the specified version. Optionally specify 32/64bit architecture.
                                 nvm use <arch> will continue using the selected version, but switch to 32/64 bit mode.
  nvm root [path]              : Set the directory where nvm should store different versions of node.js.
                                 If <path> is not set, the current root will be displayed.
  nvm version                  : Displays the current running version of nvm for Windows. Aliased as v.


Uploaded by N2T

반응형