``
This is my code for running Node js file system
var http = require('http');
var fs = require('fs');
http.createServer(function (req, res) {
//Open a file on the server and return its content:
fs.readFile('demofile1.html', function(err, data) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write(data);
return res.end();
});
}).listen(3000);
``
> This is the error iam facing while running the code
internal/modules/cjs/loader.js:985 throw err; ^enter code here Error: Cannot find module 'C:\Users\DELL\Desktop\node js programs\file' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) at Function.Module._load (internal/modules/cjs/loader.js:864:27) at Function.executeUserEntryPoint [as runMain] ( { code: 'MODULE_NOT_FOUND', requireStack: [] }