Windows installation Nodejs

Source: Internet
Author: User

Note: On-line search, stay record. Original website: http://www.cnblogs.com/pigtail/archive/2013/01/08/2850486.html

Http://jingyan.baidu.com/article/922554468a3466851648f419.html

First step: Download the installation file

: Official website http://www.nodejs.org/download/

Step Two: Install the relevant environment

Install the downloaded file

Open the C:\Program Files\nodejs directory you'll find it comes with NPM, which is installed directly with NPM

Entering the node. js Command Prompt Commands window

Enter the Nodejs installation directory C:\Program Files\nodejs

Input command: CD C:\Program Files\nodejs

Installing ESPRESS:NPM Install EXPRESS-GD (g for Global, D is dependent library)

Step three: Install the command tool

The command tool was split up in the latest version of express4.0 (Project address: https://github.com/expressjs/generator), so we also need to install a command tool with the following command:

NPM install-g Express-generator

Fourth step: Create a project

Create a project using Express:

Express HelloWorld

There have been some changes in the command in the new version, and after creating project, you need to add dependencies and launches with NPM:

CD HelloWorld

NPM Install

NPM start

Then the newly created HelloWorld is already running on Port 3000.

Visit Http://localhost:3000/and see the familiar pages.

Windows installation Nodejs

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.