我本以为很难,看了很多的文章,不足很复杂,但是这么久了,microsoft 官方和node.js 官方合作,退出了简单的傻瓜式安装工具
第一步:到node.js官方下载安装包 http://nodejs.org/ ,现在版本V0.10.13 直接点击 INSTALL 下载 msi安装
第二部:检查安装情况:开始-->运行-->cmd -->查看node版本:node -v -->查看npm版本:npm -v 如果都显示了说明安装ok了
第三部运行自己的程序,检测检测
//view plaincopy to clipboardprint?
//filename: myhello_node_app.js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(8000, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8000/');
我把文件放到c:/user/administrator/下面了
然后运行 node myhello_node_app.js
得到结果