compiled against a different Node.js version using NODE_MODULE_VERSION 57. This version of Node.js requires NODE_MODULE_VERSION 59
See original GitHub issuemodule.js:670
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The module '/usr/local/lib/node_modules/appdmg/node_modules/macos-alias/build/Release/volume.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 59. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (module.js:670:18)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/appdmg/node_modules/macos-alias/lib/create.js:7:13)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
I can’t get whatever needs to be updated/recompiled to do so.
I’ve tried:
brew update
brew upgrade
brew upgrade node
npm update -g n
npm update -g npm
npm update -g appdmg
n stable
npm update -g node
npm rebuild -g node
No luck - I’m sure I’m missing some obvious command but have no idea what it is.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
was compiled against a different Node.js version using ...
This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing the module (for instance, using `npm ...
Read more >The module was compiled against a different Node.js version
Issue If this is an issue with installation, I have read the troubleshooting guide. ⚠ Error: The module ...
Read more >The Module was compiled against a different Nodejs version ...
I am trying to use the Edge-Impulse CLI, and I have installed it with npm install -g edge-impulse-cli --force However, this is the...
Read more >How can I find my current NODE_MODULE_VERSION? - utf9k
node ' was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 89.
Read more >I am getting an error that a module was compiled against a ...
was compiled against a different Node.js version using. NODE_MODULE_VERSION 64. This version of Node.js requires. NODE_MODULE_VERSION 72.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I ran into the same issue. The following fixed the problem for me:
npm uninstall -g appdmgnpm install -g appdmgWell. Maybe my configuration broke itself - not sure. Got it working by running:
Re-downloaded & installed from: https://nodejs.org/en/download/
Ran:
npm install -g appdmgagain and not the same call that was working before is working again.