question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue
module.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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jbeeniecommented, Mar 13, 2020

I ran into the same issue. The following fixed the problem for me:

npm uninstall -g appdmg npm install -g appdmg

1reaction
Enigma0commented, Dec 12, 2017

Well. 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 appdmg again and not the same call that was working before is working again.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found