1. go on the official website to download node.js
1 https://nodejs.org/zh-cn/download/
2. Install directly to the default installation path can choose
3. Set Environment Variables
1. Install the software, if -g, is a global installation, will be installed to c drive, accounting for memory.
a. node_global new folder in the installation path
b. In the installation path of the new folder node_cache
c. Open powerShell in path, input
npm config set prefix "D:\Edittools\node_global"
npm config set cache "D:\Edittools\node_cache"
2. Open Computer Properties, set the environment
Under the new system environment NODE_HOME,
User Variables:
3. Test express a module mounted on, open PowerShell, input
npm install express -g # -g is the meaning of the global installed
This module will have at your node_global, proved successful configuration