how to install node fetch

Shell
const fetch = require('node-fetch');	//npm install node-fetch

fetch('https://httpbin.org/post', { method: 'POST', body: 'a=1' })
    .then(res => res.json())
    .then(json => console.log(json));$ npm install node-fetch --save
Source

Also in Shell: