nvm - Node version management tool

nvm Download

  1. download link
  2. Download file nvm-setup.zip

nvm installation

1. Run as administrator install.cmd file, set the file path

root: C:\Users\Administrator\AppData\Roaming\nvm
path: C:\Program Files\nodejs 
arch: 64
proxy: none

Ensure that there is a setting.txt file directory, enter the command line nvmEnter to see nvm nvm version number indicates a successful installation

2. environment variable configuration: Click My Computer "Properties" Advanced Settings "Environment Variables"
A delete system comes nvm variables: NVM_HOME and NVM_SYMLINK.
B open path: C variables automatically delete nvm added: \ nvm; C.: \ Program Files \ NodeJS
. C configuration user variables:
NVM_HOME = C: \ NVM
NVM_SYMLINK = C: \ NodeJS
the Path =% NVM_HOME%;%% NVM_SYMLINK
configuration saved

nvm configuration Taobao Mirror

1. Direct use the command line:

nvm node_mirror https://npm.taobao.org/mirrors/node/
nvm npm_mirror https://npm.taobao.org/mirrors/npm/

2. Modify setting.txt file, add the following two lines:

node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

Installation nodejs 6.10.0, will also install the corresponding version of npm

NVM install  6.10 . 0

NVM list

nvm listCommand to check the installed version nodejs

nvm use

nvm use 6.10.0Nodejs used to switch the current version 6.10.0

npm - Node third-party plug-in management tools

What npm that?

Let npm is a JavaScript programmer tools to share and reuse code. With it, JS programmers to efficiently manage and publish their own code to share.

npm set up Taobao mirror (faster download)

npm config set registry https://registry.npm.taobao.org

By npm config listwhether to view the configuration take effect

npm use

npm command



Guess you like

Origin www.cnblogs.com/niuben/p/11781529.html