question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@shelf/aws-lambda-brotli-unpacker compiled against a different Node.js version

See original GitHub issue

Getting 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:closed
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
vladgolubevcommented, Jan 5, 2020

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

4reactions
vladgolubevcommented, Oct 24, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found