• NVM (Node version management tool, Microsoft official maintenance) installation

    • Download NVM for Windows: github.com/coreybutler…

    • Note: Uninstall nodes that have been installed before.

    The installation process

    • The first step
  • The second step

  • Checking the Installation Result

  • Run CMD to run NVM -h. If the following figure is displayed, the NVM is successfully installed

NVM configuration Taobao image (download faster)

  • Modify D: / dev/NVM \ Settings. TXT root: D: / dev/NVM path: D: / dev/nodejs node_mirror: npm.taobao.org/mirrors/nod… Npm_mirror: npm.taobao.org/mirrors/npm…

  • Install a certain version of nodeJS set (Node, NPM (NodeJS package management tool)) 64-bit system: CMD run NVM install 6.9.2 CMD run NVM install 6.9.2 32//866109386

Note: where 6.9.2 indicates the installation of node version 6.9.2, NPM is included in Node and does not need to be installed separately

  • Install 6.9.2 and 4.6.0 as shown

  • Use and switch node versions as shown

NPM set taobao mirror (download faster) ###

  • npm config set registry registry.npm.taobao.org

trick

File Installation mode

  • Directly from taobao mirror https://npm.taobao.org/mirrors/node download zip version, such as: npm.taobao.org/mirrors/nod…

  • In your NVM directory [C: Users\Administrator\AppData\Roaming\ NVM], unzip to the current folder, change the folder name to v4.6.0, delete the zip file, use NVM use 4.6.0, You can run NVM root on CMD.

  • Note: C: Program Files\nodejs is only a shortcut saved here.

  • How it works: Each switch just replaces the shortcut.

  • NVM list; NVM use XXX; NVM list, when you see * (the asterisk refers to the version you want to switch to, the switch is successful). Then use node-v to verify that you have switched to the correct node.js version! Multiple NPM versions managed by NVM need to be independently configured with Taobao mirror!

Reference: songfens. 18 / club/topic /