npm install not works - `node-gyp rebuild` error

I had the error bellow when I was preparing my blockchaine developmement environement :

My environment was under:

  • NodeJs 10.15.3 LTS.
  • npm 8.x

npm install not works - node-gyp rebuild error

This an extract of the output error:

no known conversion for argument 2 from ‘Nan::imp::NativeGetter {aka void (*)(v8::Local, const v8::PropertyCallbackInfo&)}’ to ‘v8::Local’ x509.target.mk:106: recipe for target 'Release/ failed

and this is the screenshot's error

enter image description here

1 Answer

The solution was to downgrade nodeJS to 8.15.1

  • nvm install 8.15.1

Good luck

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like