标签:
一:npm install connect会出现错误:解决方法
1:$ npm install connect@2.X.X
2:$ npm install serve-static;
建立server.js
var connect = require(‘connect‘), serveStatic = require(‘serve-static‘); var app = connect(); app.use(serveStatic("angularjs")); app.listen(5000);
(书中是../angularjs会报错)
详细见:http://stackoverflow.com/questions/25457122/cannot-get-test-html-when-running-node-js-server
node.js环境配置(angularjs高级程序设计中出现的错误)
标签:
原文地址:http://www.cnblogs.com/momozjm/p/5765468.html