Answer the question
In order to leave comments, you need to log in
NodeJs not seeing files?
server.js:
var http = require('http');
var static = require('node-static');
varfile = new static.Server('.');
http.createServer(function(req, res) {
file.serve(req, res);
}).listen(8080);
console.log('Server running on port 8080');
The browser opens index.html from the root, it does not see the files in the folders.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question