robertklep / node-metrohash

Node.js bindings for MetroHash
MIT License
26 stars 8 forks source link

Can not install metrohash on Node with version 12. #22

Closed stefanmilic closed 3 years ago

stefanmilic commented 3 years ago
Screenshot 2021-07-22 at 16 04 01

I have tried npm rebuild and didt't work

robertklep commented 3 years ago

npm rebuild should work (or npm run build), but it will rebuild the module in the local (source) directory. You have to make sure it gets copied to its final location.

stefanmilic commented 3 years ago

I am using Aws lambda (node 12 version). Do you have any idea how can I rebuild the module?

robertklep commented 3 years ago

Install Node.js 12 locally (possibly using something like nvm), build it, and copy over to AWS.

stefanmilic commented 3 years ago

Only is working if i reduce Aws Lambda node version to 10

robertklep commented 3 years ago

As long as you're getting NODE_MODULE_VERSION mismatch errors, you're not compiling for the correct Node.js version.