@shelf/aws-lambda-brotli-unpacker compiled against a different Node.js version
See original GitHub issueGetting the following error when trying to run this in a node 10.x lambda runtime. Assume it’s related to the brotli unpacker not being updated to node 10.
{
"errorType": "Error",
"errorMessage": "The module '/var/task/node_modules/@shelf/aws-lambda-brotli-unpacker/src/iltorb/build/bindings/iltorb.node'\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 57. This version of Node.js requires\nNODE_MODULE_VERSION 64. Please try re-compiling or re-installing\nthe module (for instance, using `npm rebuild` or `npm install`).",
"trace": [
"Error: The module '/var/task/node_modules/@shelf/aws-lambda-brotli-unpacker/src/iltorb/build/bindings/iltorb.node'",
"was compiled against a different Node.js version using",
"NODE_MODULE_VERSION 57. This version of Node.js requires",
"NODE_MODULE_VERSION 64. Please try re-compiling or re-installing",
"the module (for instance, using `npm rebuild` or `npm install`).",
" 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.<anonymous> (/var/task/node_modules/@shelf/aws-lambda-brotli-unpacker/src/iltorb/index.js:8:16)",
" 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)"
]
}
Full disclosure, haven’t yet gotten a successful run on a 8.10 runtime yet so I’m not 100% sure it’s that but seems likely.
If node 10.16 has native brotli support, is it possible to just lose the aws-lambda-brotli-unpacker dependency?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
was compiled against a different Node.js version using ...
I initially installed NodeJS from source, but it was the incorrect version and 'upgraded' to the newest version using nvm , which doesn't ......
Read more >The module was compiled against a different Node.js version
Issue If this is an issue with installation, I have read the troubleshooting guide.
Read more >module compiled against different Node.js version - Treehouse
was compiled against a different Node.js version using. NODE_MODULE_VERSION 67. This version of Node.js requires. NODE_MODULE_VERSION 57.
Read more >Zoomsdk.node was compiled against a different Node.js ...
Description " zoomsdk.node' was compiled against a different Node.js version using. NODE_MODULE_VERSION 85. This version of Node.js requires
Read more >The Module was compiled against a different Nodejs version ...
I am trying to use the Edge-Impulse CLI, and I have installed it with npm install -g edge-impulse-cli --force However, this is the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good news: I was able to compile & run LibreOffice in the Node.js 12.x environment. Bad news: its size is ~400 MB
The goal is to make it <250 MB when unzipped, which is what I’m working on right now
Hey @dawaltconley, yes, I intend to get rid of
aws-lambda-brotli-unpacker
to make this package work on Node 10.x runtime. But that also requires recompiling LibreOffice against Amazon Linux 2, which I wasn’t successful at last time I tried.I’m aware that Node 8.10 is approaching EOL, so that’s definitely on my list. I hope to have a new version sometime later.