Reference Links: https://www.cnblogs.com/liuqiyun/p/8133904.html
This article is a link to this record
1, the installation nodejs
Web search nodejs
into the official website to download the corresponding installation package, download and install, directly next to (if necessary choose what Road King). Enter cmd in npm -v
check if the installation was successful. Generally not a problem.
Official website address: http://nodejs.cn/download/
2, modify the configuration
Here focuses on the way, refer to the above links to articles, download some of the modules are put to another disk, avoid c disk is full.
Installation is recommended to choose their own path , create two folders node_global, node_cache
Enter the following command cmd, modify the path for
npm config set prefix "你的安装路径\node_global" npm config set cache "你的安装路径\node_cache"
In the system PATH environment variable added NODE_PATH variable, the variable value:
你的安装路径\node_global\node_modules
In the User Variables Path, find the end with a variable node editing changes to:
你的安装路径\node_global\node_modules
This completes the last test, enter the following command:
npm install express -g
In the
你的安装路径\node_global\node_modules
following there will express module installed
The whole process is quite simple, this is mainly for their own records. For more, please refer to the link above, recording the brother very grateful and very detailed. Finally, then posted the link.
Reference Links: https://www.cnblogs.com/liuqiyun/p/8133904.html