"Reprint" Windows Platform installation Nodejs process

Source: Internet
Author: User
First step Download Nodejs

Visit Https://nodejs.org/en/download/url

According to your system is 32-bit or 64-bit, follow the text instructions to download

Step Two Install Nodejs

Double-click the installation package that runs Nodejs and specify to a Nodejs directory

The third step is to debug the Nodejs installation successfully

We create a new hello.js in any directory

Type the following:

var http = require ("http");
Http.createserver (function (request,response) {
Response.writehead (200, {
"Content-type": "Text/plain"
});
Response.Write ("Hello world!");
}). Listen (8888);

Then open the console and make the Hello.js directory in the console,

Run Node Hello.js

Then open the browser and you'll see Hello world!.

Article for the author original, reproduced please register the source http://www.zizhusoft.com/note/show.aspx?id=e8f2ac7e-0e27-49b2-8802-3e97d9034f42, thank you

"Reprint" Windows Platform installation Nodejs process

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.