nodejs init config
config npm
npm config ls
npm config set cache "D:\nodejs\node_cache"
npm config set prefix "D:\nodejs\node_global"
config environment
NODE_HOME = "D:\nodejs"
%NODE_HOME%\;%NODE_HOME%\node_cache\;%NODE_HOME%\node_global\
config taobao mirror registry
npm install -g cnpm --registry=https://registry.npm.taobao.org