-
Notifications
You must be signed in to change notification settings - Fork 50
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
Lambda AWS issue #152
Comments
That's a problem with the node installation, not |
It happens only with this library |
I don't have anything to suggest as I don't use Lambda. |
@hectorprats This should be an issue or question for AWS Lambda on how to fix:
|
To make it work for lambda, you MUST install (and implicitly compile) it for the right version of your runtime. It is different from your local machine. To do so you can use for example this docker image: https://hub.docker.com/_/amazonlinux . Because this issue is very old, it, probably, can be closed. |
With nodejs10.x in lambda AWS
const Magic = require('mmmagic')
{
"errorType": "Error",
"errorMessage": "libnode.so.64: cannot open shared object file: No such file or directory",
"trace": [
"Error: libnode.so.64: cannot open shared object file: No such file or directory",
" at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)",
" at Module.load (internal/modules/cjs/loader.js:653:32)",
" at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
" at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
" at Module.require (internal/modules/cjs/loader.js:692:17)",
" at require (internal/modules/cjs/helpers.js:25:18)",
" at Object. (/opt/nodejs/node_modules/mmmagic/lib/index.js:1:13)",
" at Module._compile (internal/modules/cjs/loader.js:778:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
" at Module.load (internal/modules/cjs/loader.js:653:32)"
]
}
The text was updated successfully, but these errors were encountered: