- Go to the node. js official website to download the corresponding operating system installation file http://www.nodejs.org/download/, windows environment to download the msi file
- Open the downloaded file and click next to complete the installation.
- After the installation is complete, open the cmd window and enter node-v to display the following interface, which indicates that the node is successfully installed:
- The new node version contains npm by default. If npm-v is entered, the following interface is displayed, indicating that npm is successfully installed.
- Install bower and enter npm install bower-g in cmd.
- After the installation is complete, enter bower-v to display the following interface, indicating that the bower is successfully installed.
If bower is not an internal command, you need to configure the Path environment variable. In the Path variable, add: C: \ Program Files \ nodejs \ node_global \; (Enter the variable according to your own installation directory)
- After setting, restart cmd and perform Step 1 to check whether the setting is successful.
Bower installation tutorial