Nodejs version management tool nvmw installation configuration
At first, nvm was used to manage the nodejs version, but nvm can only download and cannot switch versions. After Baidu, I learned that nvmw is required to manage on Windows.
Now record the installation and configuration of nvmw for future reference
1. Download nvmw: https://github.com/TimothyGu/nvmw
2. Configure environment variables: configure the nvmw path in the path
3. Open cmd and configure the mirror address as Taobao mirror:
set "NVMW_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node" set "NVMW_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs" set "NVMW_NPM_MIRROR=http://npm.taobao.org/mirrors/npm"
4. Modify the download path
4.1. Modify line 137 of nvmw.bat file, change x64 to win-x64
4.2. Modify line 47 of fget.js file, change XMLHTTP to ServerXMLHTTP
5. At this point, you can use nvmw to switch the nodejs version
5.1、nvmw install 8.1.2