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.

Module version mismatch. Expected 48, got 47.

See original GitHub issue

Hello,

when I run dredd command I’m getting ‘Module version mismatch. Expected 48, got 47.’ error.

Node version is 6.1.0. and npm 3.8.6.

Complete error message:

module.js:568
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: Module version mismatch. Expected 48, got 47.
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/dredd/lib/dredd.js:11:15)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)

What should I do to fix this?

Thank you

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kylefcommented, May 16, 2016

This sounds like you’ve installed dredd and then upgraded or changed the version of node you are using. To solve this, you will need to reinstall dredd with the version of node you want to run it from.

$ npm install -g dredd
0reactions
honzajavorekcommented, Mar 13, 2017

@asbjornu @alexey-sh Did you try the solutions mentioned above? You could also give a try to the pure JS version to avoid compilation:

$ npm uninstall dredd
$ npm install dredd --no-optional
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Module version mismatch. Expected 48, got 57 ... - GitHub
That error message often happens when the node version in a machine has been updated. In your case, it looks like you've installed ......
Read more >
Module version mismatch. Expected 48, got 51 - Stack Overflow
It seems the number refers to NODE MODULE version, 48 is node 6, 57 is node 8. We were running our pm2 processes...
Read more >
Node-Red does not start BeagleBone Black (Linux 4.4.30
Hi all, I have followed the instructions to install Node-Red on my BBB (Linux 4.4.30-ti-r64 #1, Debian Linux 8.7 (jessie), as described in...
Read more >
2013642 – udevadm warns on a new PCRE2 version: Regex ...
After upgrading pcre2 to 10.38, udevamd warns like this: # udevadm Regex version mismatch, expected: 10.38 2021-10-01 actual: 10.37 ...
Read more >
nodegit/nodegit - Gitter
I navigated to the nodegit folder, ran npm install and npm rebuild , but still am getting an Uncaught Error: Module version mismatch....
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