diff --git a/doc/js_tutorials/js_setup/js_nodejs/js_nodejs.markdown b/doc/js_tutorials/js_setup/js_nodejs/js_nodejs.markdown index 75ae205e13..9ff4a05d24 100644 --- a/doc/js_tutorials/js_setup/js_nodejs/js_nodejs.markdown +++ b/doc/js_tutorials/js_setup/js_nodejs/js_nodejs.markdown @@ -146,7 +146,7 @@ npm install canvas jsdom @code{.js} const { Canvas, createCanvas, Image, ImageData, loadImage } = require('canvas'); const { JSDOM } = require('jsdom'); -const { writeFileSync } = require('fs'); +const { writeFileSync, existsSync, mkdirSync } = require("fs"); // This is our program. This time we use JavaScript async / await and promises to handle asynchronicity. (async () => {