search

Home  >  Q&A  >  body text

node.js - angular.js高级程序设计书本开头配置环境出错,谁能给解答一下


server.js
var connect=require('connect');
serveStatic=require('serve-static');
var app=connect();
app.use(serveStatic("../angularjs"));
app.listen(5000);
运行server.js没反应,localhost:5000/test.html显示cant get test/html

迷茫迷茫2787 days ago445

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 15:57:32

    app.use(serveStatic("./angularjs"));
    This line of address is wrong

    reply
    0
  • Cancelreply