Windows system Nodejs, NPM, express download and installation tutorials detailed _win server

Source: Internet
Author: User
Tags generator parent directory

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.