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.

OS X: Error: Module version mismatch. Expected 48, got 49

See original GitHub issue
  • ^5.30.0:
  • 1.3.3:

When trying to build for OS X getting the following error: tsc && node-gyp rebuild && build --mac

Error: Module version mismatch. Expected 48, got 49. at Error (native) at Object.Module._extensions…node (module.js:583:18) 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> (/Users/Jenia/Desktop/git/electron-angular2-native/node_modules/macos-alias/lib/create.js:7:13) at Module._compile (module.js:556:32) at Object.Module._extensions…js (module.js:565:10) 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> (/Users/Jenia/Desktop/git/electron-angular2-native/node_modules/macos-alias/index.js:1:18) at Module._compile (module.js:556:32) at Object.Module._extensions…js (module.js:565:10) 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> (/Users/Jenia/Desktop/git/electron-angular2-native/node_modules/ds-store/index.js:2:13) at Module._compile (module.js:556:32) at Object.Module._extensions…js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) From previous event: at tsAwaiter (/Users/Jenia/Desktop/git/electron-angular2-native/node_modules/electron-builder/src/util/awaiter.ts:10:47) at Object.build (/Users/Jenia/Desktop/git/electron-angular2-native/node_modules/electron-builder/src/builder.ts:195:52) at Object.<anonymous> (/Users/Jenia/Desktop/git/electron-angular2-native/node_modules/electron-builder/src/build-cli.ts:27:28) at Module._compile (module.js:556:32) at Object.Module._extensions…js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.runMain (module.js:590:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

To reproduce:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
develarcommented, Aug 22, 2016

node-gyp-rebuild bin will be added.

1reaction
develarcommented, Aug 20, 2016

Set "nodeGypRebuild": true in your build and remove .npmrc file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module version mismatch. Expected 49, got 48 - Stack Overflow
This is well-know problem when when upgrading node version. For example: you are using Node for example version 5. You add some libraries...
Read more >
Node.js v19.3.0 Documentation
Indicates the failure of an assertion. All errors thrown by the node:assert module will be instances of the AssertionError class. new assert.AssertionError( ...
Read more >
updating Node Red - Google Groups
Didn't compile properly – then contrib/gpio said mudule version mismatch – missing serialport dependency – expected 48, got 47. Error module version ......
Read more >
Master Module Version Mismatch - Avid Pro Audio Community
I'm getting a Master Module Version Mismatch error after installing 2020.11, did a search and apparently there's a bug with this installer but...
Read more >
ethereum/go-ethereum - Gitter
I am using Mac OS sierra. I have tried to follow this one ... Error: Module version mismatch. Expected 48, got 46. at...
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