码迷,mamicode.com
首页 > Windows程序 > 详细

windows 10 安装node.js

时间:2018-09-21 11:37:54      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:技术   官网   download   run   span   第一步   分享   windows   http   

 

第一步:下载软件
	nodejs的中文官网http://nodejs.cn/download/

技术分享图片

 

选择 windows  系统 msi 安装版本。

下载完成之后,直接打开下一步安装就可以。

安装完成 打开cmd

技术分享图片

 

 写个测试程序

 

 hellp.js

var http = require(‘http‘);
http.createServer(function(request,response){
    response.writeHead(200,{‘Content-type‘:‘text/plain‘})
    response.end("Hello World\n");
    }).listen(8888);
    console.log(‘Server running at http://127.0.0.1:8888‘);

 

技术分享图片

 

技术分享图片

 

OK! 安装完成。还是挺简单的。

 

windows 10 安装node.js

标签:技术   官网   download   run   span   第一步   分享   windows   http   

原文地址:https://www.cnblogs.com/inkwhite/p/9685520.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!