Nodejs under Windows installation using

Source: Internet
Author: User

Introduction to Nodejs installation using Windows.

1. Download and install

nodejs:https://nodejs.org/download/

Mongodb:http://www.mongodb.org/downloads

2. View the version and install Express

Nodejs after the installation is successful, open the cmd command line:

Node-v: View Nodejs version

Npm-v: View NPM version

When the version is displayed, the installation is successful and the Express installation begins

Before express3.6.x, Express needs to be installed globally, and now we only need to install the Express-generator project globally.

installation command:

NPM install-g [email protected]

Can be used after successful installation

Express-v View Version

3. Create a project

Now, start creating a simple project

EXPRESS-E Test: Create a project named Test and support the Ejs template

Express Test: Create a project named Test and support the Jade template (default)

Once the creation is successful, follow the instructions CD test and NPM install.

4. Project operation

Run the Test\bin\www file as required

If you are currently in the test directory,

Enter the node Bin\www startup Project

Open Browser, enter http://localhost:3000

interface display, run successfully.

Nodejs under Windows installation using

Related Article

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.