I'm trying to use jsdom in this Angular 5 project.
npm install jsdom --save
Now, I import the library:
import * as jsdom from "jsdom";
And then use the library in my code just like the npm readme suggests:
const inMemoryDom = new jsdom('<html>...</html>');
The app crashes and console reads Cannot find module "child_process"
. Any clue what this could mean?