1, Node.js download
First into the http://nodejs.org/dist/, this version of it, almost every month a few new, suggest you download the latest version, to see how many of their own computer, do not make the wrong.
Download the extract to the location you want to put on the good, after decompression you will find that there are node.exe. I unzipped to the D:\software_install folder.
Next go to the command line, that is, click on the beginning of the lower left corner of the computer--> run-->cmd.
Enter the directory where Node.exe is located, input node-v, and view your node version. My path is shown in the following illustration:
If you get the above output, you have successfully installed the node.js.
Common operations with Command lines:
1 after the file is run, bring up the command input column again with CTRL + C
2) go to a disk under F:
3) Go to a folder under CD F:\nodeExamples
4) Back to the parent directory CD.
(My computer is 32-bit, the next is Http://nodejs.org/dist/v7.0.0/node-v7.0.0-win-x86.zip.) The reason I'm downloading the version is because the update is so fast that it's probably not going to work for a while. )
2, NPM
The new version of Nodejs has already been integrated with NPM, so NPM was installed as well. You can also test for a successful installation by entering Npm-v.
3, Express
Here's a question to note. In the 4.x version, Express has separated the command line tools (link https://github.com/expressjs/generator)
We now have the global installation only need to install this command-line tool, the instructions are as follows:
NPM install-g Express-generator
We then proceed with the installation of the Express framework, which commands the following:
Express (Is there one you are sure to install?) Type Y)
NPM Install (Installation Express and Reliance)
NPM Start (Note that the Express 4.x cannot be started with node app.js, but with the command NPM start)
Access to Http://localhost:3000/appears familiar Welcome to Express, proof of installation success.
or type Express--version at the command line, as shown in the following figure:
If you get the above output, you have successfully installed the Express.
The above is a small series to introduce the Windows system under the Nodejs, NPM, express download and installation of the tutorial detailed, to achieve a simulation of the background data login effect, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!