XMLHttpRequest module not defined/found
XMLHttpRequest is a built-in object in web browsers. It is not distributed with Node. The http module is the built-in tool for making HTTP requests from Node. Most people making HTTP requests from node use a third party library with a friendlier API. Two popular choices are Axios (for use both in Node.js and browsers) and node-fetch (which implements the fetch API … Read more