node-libcurl: `zstd` dependency is missing

Error:

Error: dlopen(node_modules/node-libcurl/lib/binding/node_libcurl.node, 1): Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
Referenced from: node_modules/node-libcurl/lib/binding/node_libcurl.node

Reason: image not found
  at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
  at Module.load (internal/modules/cjs/loader.js:863:32)

Hot Fix

Install zstd package

This issue took at least 8 hour from our team ๐Ÿ˜… Added ๐Ÿ”ฅ hotfix instruction to library where node-libcurl is dependency โ€” https://github.com/VeliovGroup/request-extra#3-missing-libraries

@JCMais node-libcurl expect to have zstd library installed? Or itโ€™s a bug and dependency is missing?

Tested on macOS@10.12.6 and macOS@10.15, node@12.18.4 and node@14.15.4, npm@6.14.8 and npm@7.5.2.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Closing this issue as v2.3.1 has been released, full changelog available here.

It may take some time until all the prebuilt binaries are available.

@DMarby the glibc builds are on TravisCI, I am awaiting a response from their support about my OSS allowance. Currently, it says I used all my credit (I did not even know this was a thing for OSS projects). This seems to be related to their new pricing model: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing

If I donโ€™t get this solved by the end of today/tomorrow, I will probably just use another CI provider to run the glibc builds, probably GitHub Actions as it seems to be the fastest one at the moment.

Hi @dr-dimitru, sorry if this took some time to debug, I have to take a look at the way the addon is being built in macOS, as it should not really require external dependencies, as it should be built statically with all the dependencies.

Unfortunately, Iโ€™m not able to that at the moment as I do not have a mac available. I should get around by the end of the month. Until then I will keep this issue opened.

@JCMais Awesome, thanks a lot, looking forward to it!

Please let me know if I can be of any assistance, or if you need any further help with MacOS testing or such.

Hi. I just struggle this morning with this issue. I have to install the lib myself. It take a long while. Use this command to do it

brew install --build-from-source zstd

Do it, and you can brew a coffee. It took more than 1 hour here. =)

PS: Sorry. Now i saw your link with a much more detailed solution ๐Ÿ˜‰