http://m.blog.csdn.net/article/details?id=51435446
http://www.imooc.com/wenda/detail/314276
1、从https://nodejs.org/en/官网下载nodejs,并安装; 查看安装结果:cmd下,输入node -v;输入npm -v; 2、执行命令 npm install -g generator-angular; 3、执行命令 npm install -g bower; 4、到项目路径下比如:D:\workspacewmf\project-boot-v1.0 依次执行3个命令: npm install bower install grunt serve 5、浏览器自动打开界面。
运行nodejs demo
在C:\Program Files\nodejs路径下打开cmd,执行node demo.js
demo.js内容如下:
var http=require("http"); http.createServer(function(request,response){ response.writeHead(200,{"Content-Type":"text/html"}); response.write("Hello World!"); response.end(); }).listen(8080); console.log("Running nodejs demo Success");原文链接:https://www.f2er.com/angularjs/147541.html