Installation node.js. Go to the official website to download, download LTS version. All the way to determine the point of installation, do not change any settings.
In git-bash or the cmd, enter node -v, view the version node, the node check whether the installation was successful. Then enter npm -vto view the version of npm. node.js built npm.
npm install -g nrm or mounting CNPM CNPM the install -g NRM
nrm -V // View nrm version nrm ls // display all the available mirror source nrm us a large column installation node.js and npm / cnpm / nrm the e taobao // switch registry to taobao use Taobao mirror source nrm use cnpm / / switch registry to cnpm i.e., source switching mirror velocity nrm test // test all image sources
After the download is complete, double-click the installer, install
Installation directory on your computer to the original installation directory node.js the same, such as node.js original installation directory is "C: Program Files (x86) nodejs", when you install the new version, the installation directory should be "C: Program Files (x86) nodejs "
After the installation is complete, view node.js and npm version