How to create a custom points leaderboard?

Hey,

so I am trying to connect to streamlabs, but I am having trouble as to how I have to do it right. So far it looks like this:

const socketToken = '';

const streamlabs = io(`https://sockets.streamlabs.com?token=${socketToken}`, {transports: ['websocket']});

streamlabs.on('connect', () => console.log('Connected with Streamlabs'));

To get my token, streamlabs says I have to use this:

const fetch = require('node-fetch');

let url = 'https://streamlabs.com/api/v1.0/socket/token';

let options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));

But the programm says, that it can’t find the ‘node-fetch’ module.
Where do I get that module or am I just on the wrong way to get connected?