Cannot find name 'require'


Im trying to install a third party module like this:

npm install --save rss-parser

But when importing it like this in a helpers file:

let Parser = require(‘rss-parser’);
let parser = new Parser();

I get the error in the title.

Do I really need to install


like VisualCode is suggesting or am I doing something wrong with these imports?

Thanks in advance!

EDIT: No, installing @types/node does not help.