windows 10 安装node.js

时间:2023-03-09 21:05:31
windows 10  安装node.js
第一步:下载软件
	nodejs的中文官网http://nodejs.cn/download/

windows 10  安装node.js

选择 windows  系统 msi 安装版本。

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

安装完成 打开cmd

windows 10  安装node.js

写个测试程序

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');

windows 10  安装node.js

windows 10  安装node.js

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