Sharp: Module version mismatch. Expected 48, got 59

Created on 26 Jan 2018  路  1Comment  路  Source: lovell/sharp

Hi. I applied the regular software (ubuntu) updates today and now my program is broken with the above message. Here is the stack trace...
module.js:597
return process.dlopen(module, path._makeLong(filename));
^

Error: Module version mismatch. Expected 48, got 59.
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/michael/Development/ Current Project/httplistener/node_modules/sharp/lib/constructor.js:10:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)

The sharp reinstall shows [email protected]
nodejs -v: 6.12.3

Doing all the usual stuff like uninstalling and reinstalling doesn't seem to help me.

question

Most helpful comment

Hello, npm rebuild will recompile all native modules for the new major version of Node you're now using.

If this doesn't work, please see the previous reports - https://github.com/lovell/sharp/search?utf8=%E2%9C%93&q=%22Module+version+mismatch%22&type=Issues

>All comments

Hello, npm rebuild will recompile all native modules for the new major version of Node you're now using.

If this doesn't work, please see the previous reports - https://github.com/lovell/sharp/search?utf8=%E2%9C%93&q=%22Module+version+mismatch%22&type=Issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

henbenla picture henbenla  路  3Comments

genifycom picture genifycom  路  3Comments

iq-dot picture iq-dot  路  3Comments

emmtte picture emmtte  路  3Comments

zhump picture zhump  路  3Comments