September 2019. Time
1. Installation nodejs; mounting VScode
2. Change nodeJS original environment variable, change the default installation directory nodeJS global module, easy to manage
npm config set prefix "D:\Program Files\nodejs\node_global" npm config set cache"D:\Program Files\nodejs\node_cache"
Upon completion you can see the name of the appropriate folder in the folder reference
2.1 Add NODE_PATH in the system environment variables, enter the path for the previously specified directory: D: \ Program Files \ nodejs \ node_global, role is to make nodeJS engine can find the required modules
After 2.2 npm when executed when the installation install xxx -g global module, a block will be installed into this location
3. Install cnpm
Elevation install g cnpm --registry = https: // registry.npm.taobao.org
3.1 System Variables path disposed in the path of the second step, as will be mounted cnpm to D: \ under Program Files \ nodejs \ node_global, in order to quickly perform cnpm