1. Download the appropriate version of node installation package on Node official website: http://nodejs.org/#download; The 6.5 latest version I downloaded;
2, the installation node, are the system default, has been installed down;
3. Enter node-v;npm-v in CMD to test whether node and NPM are installed;
4, Global folder settings, to create a new folder under Nodejs Node_global and Node_cache, in cmd input
NPM config set prefix "D:\Program files\nodejs\node_global"
NPM config set cache "D:\Program Files\nodejs\node_cache"
5, configure the system variables. Go to my Computer → properties → advanced → environment variables. Under System variables, create a new "Node_path" and enter "D:\Program files\nodejs\node_global\node_modules".
6. Enter NPM install bower-g at the command line, install bower;
7. Input node,
Require (' bower ') shows that the installation was successful!
8. Enter NPM install express-g at the command line
9. Input node,
Require (' Express ') shown below indicates successful installation!
Windows under Node environment configuration