npm --day02 (nvm node version control tools)

NVM 

  Node Version Manager node version control tools

  Switching nodejs version (different nodejs development environment) -> switch is actually operating environment

Different operating systems

  OSX / linux NVM curl -o https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

  windows    nvmw (NVM of windows version)

      windows-NVM    (and nvm Mac Lane with nothing to do for windows system)  https://github.com/coreybutler/nvm-windows/releases   (nvm-setup.zip)

nvm commonly used commands ---> windows command as

  nvm --version View version

  nvm install stable install the latest version nodejs

  nvm install 8.11.1    

  nvm install 8.11  

  nvm ls -remote lists all available versions nodejs

  nvm ls all locally installed version

  nvm use  8.11.1                      

  nvm use 8.11.x to switch to the latest version 8.11.x

  nvm alias default node (version number) to set the default version to the latest version (a version is set as the default version v8.11.1)

 

Guess you like

Origin www.cnblogs.com/baota/p/12448720.html