windows 10 安装node.js

 

第一步:下载软件
	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! 安装完成。还是挺简单的。

 

posted @ 2018-09-21 11:08  墨白`Blog  阅读(4965)  评论(0编辑  收藏  举报