title: NPM module canvas was compiled against a different Node.js version using NODE_MODULE_VERSION 88
body: <p>I am trying to use the NPM version of <a href="https://www.npmjs.com/package/canvas" rel="noreferrer">canvas</a> as well as an NPM module to <a href="https://www.npmjs.com/package/merge-images" rel="noreferrer">merge images</a>. However it Canvas seems to not want to load. I get an error everytime I require it and run the script.</p>
  <p><a href="https://stackoverflow.com/questions/46384591/node-was-compiled-against-a-different-node-js-version-using-node-module-versio#46384631">This</a> answer didn't really seem to help as I tried all of the solutions but it seemed to be talking about bcrypt and electron.</p>
  <p>I am running node <code>v12.16.3</code> with npm version <code>6.14.10</code> and my canvas version in my <code>package.json</code> is <code>^2.6.1</code></p>
  <p>My complete error message:</p>
  <pre><code>Error: The module '\\?\C:\...\node_modules\canvas\build\Release\canvas.node'
  was compiled against a different Node.js version using
  NODE_MODULE_VERSION 88. This version of Node.js requires
  NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
  the module (for instance, using `npm rebuild` or `npm install`).
      at Object.Module._extensions..node (internal/modules/cjs/loader.js:1183:18)
      at Module.load (internal/modules/cjs/loader.js:977:32)
      at Function.Module._load (internal/modules/cjs/loader.js:877:14)
      at Module.require (internal/modules/cjs/loader.js:1019:19)
      at require (internal/modules/cjs/helpers.js:77:18)
      at Object.&lt;anonymous&gt; (C:\...\node_modules\canvas\lib\bindings.js:3:18)
      at Module._compile (internal/modules/cjs/loader.js:1133:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
      at Module.load (internal/modules/cjs/loader.js:977:32)
      at Function.Module._load (internal/modules/cjs/loader.js:877:14)
      at Module.require (internal/modules/cjs/loader.js:1019:19)
      at require (internal/modules/cjs/helpers.js:77:18)
      at Object.&lt;anonymous&gt; (C:\...\node_modules\canvas\lib\canvas.js:9:18)
      at Module._compile (internal/modules/cjs/loader.js:1133:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
      at Module.load (internal/modules/cjs/loader.js:977:32)
  </code></pre>