I'm new with node js and I tried to use the module "fs" but I have always the same error that I can't understand: " Cannot find module 'fs' ". The code is:
const fs = require('fs');
fs.createReadStream("data/dataset.csv", "utf8", function(error, data)
{
data = d3.tsv.parse(data);
console.log(JSON.stringify(data));
}
);
Can someone help me? Thank you