1 Install visual studio 2015
2 Install python2.7 Note that it is installed under C:\Python27 and set the python environment variable
PATH plus C:\Python27 and c:\Python27\Scripts
3 Go to the official website to download and install nodejs, install it step by step, pay attention to create a new node_cache, node_global in the installation directory
4 Set the environment variable PA to represent the installation path
Under user variables: PA \node_cache\node_modules
Under system environment variables: Add NODE_PATH= PA \node_global\node_modules
and add %NODE_PATH% to the path
5 node global settings
npm config set prefix "PA\node_global"
npm config set cache "
PA
\node_cache"
6 If the control panel deletes node, you need to manually find it in
C:\Users\
[user]
\.npmrc and delete it