I've seen another question here on SO, but I can't for the life of my figure out why I can't get this to work. In the same directory as my node installation I ran the commands npm install and npm install connect. Then again in the same directory as my node installation I created a server.js file:
var connect = require("connect");
var app = connect.createServer().use(connect.static('../angularjs'));
app.listen(8180);
so when then I'm again in my root node directory I do node server.js
to start the server and it starts fine. In the root directory of node I made a folder called angularjs and in that folder I placed an index.html. Whenever I navigate in my browser to localhost:8180/index.html I get the message Cannot GET /index.html. It seems that this should be working, what in the world am I missing here?
..is wrong.