Error missing zstd lib when trying to publish functions
danielwillemse opened this issue · 0 comments
danielwillemse commented
When trying to publish a function, you may run into the following error:
bb functions publish
internal/modules/cjs/loader.js:1226
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: dlopen(/Users/<myuser>/.asdf/installs/nodejs/14.2.0/.npm/lib/node_modules/@betty-blocks/cli/node_modules/node-libcurl/lib/binding/node_libcurl.node, 1): Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
Referenced from: /Users/<myuser>/.asdf/installs/nodejs/14.2.0/.npm/lib/node_modules/@betty-blocks/cli/node_modules/node-libcurl/lib/binding/node_libcurl.node
Reason: image not found
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1226:18)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/<myuser>/.asdf/installs/nodejs/14.2.0/.npm/lib/node_modules/@betty-blocks/cli/node_modules/node-libcurl/dist/Easy.js:5:18)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
For me, the following fix solved the trick: Homebrew/homebrew-core#39111
TL:DR; brew install zstd