Install node. js
1. Download node. js, first to download the Windows version of the official website http://nodejs.org/download/download page, there are two versions, recommended. msi installer, including node. JS and NPM two programs, more convenient,. ex The E version contains only part of node. js.
2. After downloading, execute the Node-v0.10.31-x64.exe installer directly.
Go on
Agree to the license agreement.
The default installation path
As you can see, it contains the node. JS Runtime, the NPM package management tool, which is equivalent to the Nuget Package Manager in. NET, and the corresponding documentation.
Note In the final step, the path to the program is also added to the path and can be used everywhere.
After confirmation, the official installation begins.
Installation is complete.
Configure path Path
This step is not necessary if you are using the. msi installer.
If you do it yourself, also configure the path path to add your node. js search path to the system's path path.
Verifying NodeJs Installation
Open a command-line window, enter Node-v, and the output is as follows Nodejs installation succeeded:
Are you done? No, you still need NPM.
About NPM
Using the method above, you've actually got NPM. However, if you do not use the. msi installation, but instead download the Node.exe directly, you also need to handle npm yourself, without npm you will be very painful.
First, you need to go to the NPM page on GitHub: HTTPS://GITHUB.COM/NPM/NPM
Look down and you'll see this paragraph.
Click on this link. You'll see a list of NPM downloads, and it's strange that the list is actually in the positive order, and you need to pull up to the end to find the latest version that I'm seeing now.
The newest is npm-1.4.9, directly download. zip compression package,. tgz is the usual compression package on Linux, we don't have to.
Unzip the package into your Nodejs directory. In the end your Nodejs directory should be the right one.
Verifying NPM Installation
Open a new console window, enter NPM, and it's likely you'll see the output below, not frustrating, but it's simple.
If the above error occurs, under the current user's folder, go to the c:\users\[user name]\appdata\roaming folder and create a folder named NPM.
Rerun and see the following results to illustrate the success of NPM installation:
Congratulations to you! You have configured the NODEJS environment!
Configuring the node. JS Environment