Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something went wrong installing the "sharp" module #59

Closed
Story5 opened this issue Nov 6, 2019 · 1 comment
Closed

Something went wrong installing the "sharp" module #59

Story5 opened this issue Nov 6, 2019 · 1 comment

Comments

@Story5
Copy link

Story5 commented Nov 6, 2019

[cordova-res] The module '/usr/local/lib/node_modules/cordova-res/node_modules/sharp/build/Release/sharp.node'
[cordova-res] was compiled against a different Node.js version using
[cordova-res] NODE_MODULE_VERSION 64. This version of Node.js requires
[cordova-res] NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
[cordova-res] the module (for instance, using `npm rebuild` or `npm install`).
[cordova-res] 
[cordova-res] - Ensure the version of Node.js used at install time matches that used at runtime
[cordova-res] - Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
[cordova-res] - Search for this error at https://github.com/lovell/sharp/issues
@imhoffd
Copy link
Contributor

imhoffd commented Nov 19, 2019

This means you updated Node. You need to reinstall cordova-res (and any other package with native dependencies) after changing Node versions.

npm uninstall -g cordova-res
npm install -g cordova-res

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants