Closed stefanmilic closed 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.
I am using Aws lambda (node 12 version). Do you have any idea how can I rebuild the module?
Install Node.js 12 locally (possibly using something like nvm
), build it, and copy over to AWS.
Only is working if i reduce Aws Lambda node version to 10
As long as you're getting NODE_MODULE_VERSION
mismatch errors, you're not compiling for the correct Node.js version.
I have tried npm rebuild and didt't work