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

How to compile for node 8.10? #42

Closed
rajesh-vi opened this issue Jun 7, 2019 · 5 comments
Closed

How to compile for node 8.10? #42

rajesh-vi opened this issue Jun 7, 2019 · 5 comments

Comments

@rajesh-vi
Copy link

I'm getting following error, how can I re-compile for node 8.10?

    module initialization error: Error
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 64. This version of Node.js requires
    NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
    the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/task/node_modules/virgil-crypto/dist/virgil-crypto.cjs.js:5:11)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
@xLEWKANx
Copy link
Contributor

@rajesh-vi Hi, try npm rebuild

@rajesh-vi
Copy link
Author

@xlwknx
I have already tried that command, it doesn't help.

@vadimavdeev
Copy link
Contributor

Try running npm install virgil-crypto again. There is a post-install script that downloads the native addon compiled for your OS and Node.js version.

@rajesh-vi
Copy link
Author

Issue is already resolved by reinstalling npm 3.5.2, node v8.10.0 and then install virgil-crypto again.

@rajesh-vi
Copy link
Author

Closing issue,
Thanks for the support.

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

3 participants