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 50, got 51.

See original GitHub issue

NodeJS v7.0.0

When running node directly everything is fine.

/home/qwemaze/projects/containers/kholodilnikcompose/kholodilnik/node_modules/sharp/index.js
Module version mismatch. Expected 50, got 51.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:168:20)
    at Object.Module._extensions..node (module.js:583:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:168:20)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/qwemaze/projects/containers/kholodilnikcompose/kholodilnik/node_modules/sharp/index.js:12:13)
    at Module._compile (module.js:556:32)
    at Object.devtoolCompileModule [as .js] (/home/qwemaze/.nvm/versions/node/v7.0.0/lib/node_modules/devtool/lib/require-hook.js:32:14)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/qwemaze/projects/containers/kholodilnikcompose/kholodilnik/dbmodel/extender/item/router.js:4:15)
    at Module._compile (module.js:556:32)
    at Object.devtoolCompileModule [as .js] (/home/qwemaze/.nvm/versions/node/v7.0.0/lib/node_modules/devtool/lib/require-hook.js:32:14)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at fs.readdirSync.map (/home/qwemaze/projects/containers/kholodilnikcompose/kholodilnik/requireDir.js:11:49)
    at Array.map (native)
    at module.exports.e (/home/qwemaze/projects/containers/kholodilnikcompose/kholodilnik/requireDir.js:10:31)

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
Figedicommented, Nov 11, 2016

The problem is somewhat related to electron, as the newest version to this date (1.4.6) uses the module version 50, while node 7 uses version 51. All we can do is wait until electron releases a newer version with a newer module version. I downgraded devtool and node for this sole reason in order for both to match the module version

1reaction
talltylercommented, Nov 11, 2016

This seems to be related to Electron, not Devtool. This should be the fix http://electron.atom.io/docs/tutorial/using-native-node-modules/

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Module version mismatch. Expected 50, got 51 #54 - GitHub
When trying to use keytar with node 7.1.0 in ubuntu 14.04, I get the following error: Uncaught Exception: Error: Module version mismatch.
Read more >
BUG解决:Error: Module version mismatch. Expected 46, got 51 ...
Expected 50, got 54 解决步骤: 1. npm uninstall --save desktop-idle 2. npm install --save desktop-idle 3. 执行:electron-builder install-app-deps 问题解决!...
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 >
Node Module Version Mismatch - RationalDev
This normally means you have changed your version of node and a package needs recompiling to match the version of node you are...
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