marcominetti / node-memwatch

A NodeJS library to keep an eye on your memory usage, and discover and isolate leaks.
775 stars 62 forks source link

Error on node version 6.3.0 #19

Open erickponce opened 8 years ago

erickponce commented 8 years ago

Error: Module version mismatch. Expected 48, got 14. at Error (native) at Object.Module._extensions..node (module.js:568:18) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19)

Tried npm uninstall, rebuild and install again but its not working

srowatt commented 7 years ago

The major version of node used to build memwatch is a different major version of node you're using memwatch with.

In this case, it looks like memwatch was built against node v4+ but you're trying to use it with node v0.12. Try doing an npm rebuild to rebuild memwatch against the current version of node.