node. JS is a platform built on the chrome JavaScript runtime to easily build fast, easy-to-scale Web applications · With event-driven, node. js, the non-blocking I/O model becomes lightweight and efficient, making it ideal for data-intensive, real-time applications running on distributed devices.
Baidu Experience: jingyan.baidu.com
Method/Step
- 1
Go to nodejs official website download software (nodejs.org),
- 2
When the download is complete, double-click the default installation. The Setup program automatically adds environment variables
- 3
Detects if the Nodejs is installed successfully. Open cmd command line input node-v display the current version number
- 4
Check if NPM is installed. Since NPM has been integrated with the new version of Nodejs, NPM has been installed as well. You can also use the cmd command line to type Npm-v
- 5
NPM as a Nodejs module management, I did not look at the data in a systematic way, resulting in the installation of the configuration module took a long detour, so it is necessary to list to record. We will first configure the NPM Global Module storage path and the cache path, for example, I would like to put the above two folders in the Nodejs home directory, the Nodejs under the establishment of "Node_global" and "Node_cache" two folder. We'll just type two lines of command in CMD:
NPM config set prefix "D:\Program files\nodejs\node_global"
And
NPM config set cache "D:\Program Files\nodejs\node_cache"
- 6
The next step is critical, and we need to set up 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".
- 7
Installing bower, NPM install bower-g; -G indicates global
Input node,
Require (' bower ') shows that the installation was successful!
Nodejs+npm+bower installation configuration in the Windows environment