Node.js request module not working (options.uri is a required argument)

时间:2015-07-28 23:46:43

标签: javascript node.js request

I have a function, that downloads an image.

numberOfRowsInSection

But when I try to run it, I get function download(uri, filename, callback) { request(uri) .on('error', function(err) { console.log(err) }) .pipe(fs.createWriteStream(filename)).on('close', callback); }; error.

I tried

options.uri is a required argument

0 个答案:

没有答案