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.

installation node-libcurl failed on MacOS X

See original GitHub issue

Hello, I’m trying to install node-libcurl to MacOS X 10.13.6 High Sierra

MacBook-Pro-Viktor:.node-red admin$ node -v v12.0.0

MacBook-Pro-Viktor:.node-red admin$ yarn -v 1.13.0

MacBook-Pro-Viktor:.node-red admin$ yarn add node-libcurl

error /Users/admin/.node-red/node_modules/node-libcurl: Command failed. Exit code: 1

9 warnings and 8 errors generated. make: *** [Release/obj.target/node_libcurl/src/node_libcurl.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/admin/.node-red/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:196:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command “/usr/local/bin/node” “/Users/admin/.node-red/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/Users/admin/.node-red/node_modules/node-libcurl/lib/binding/node_libcurl.node” “–module_name=node_libcurl” “–module_path=/Users/admin/.node-red/node_modules/node-libcurl/lib/binding” “–napi_version=4” “–node_abi_napi=napi” “–napi_build_version=0” “–node_napi_label=node-v72” gyp ERR! cwd /Users/admin/.node-red/node_modules/node-libcurl gyp ERR! node -v v12.0.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /Users/admin/.node-red/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/.node-red/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/Users/admin/.node-red/node_modules/node-libcurl/lib/binding --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/admin/.node-red/node_modules/node-libcurl/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:196:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1000:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5) node-pre-gyp ERR! System Darwin 17.7.0 node-pre-gyp ERR! command “/usr/local/bin/node” “/Users/admin/.node-red/node_modules/node-libcurl/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build” node-pre-gyp ERR! cwd /Users/admin/.node-red/node_modules/node-libcurl node-pre-gyp ERR! node -v v12.0.0 node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /Users/admin/.node-red/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/.node-red/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/Users/admin/.node-red/node_modules/node-libcurl/lib/binding --napi_version=4 --node_abi_napi=na

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JCMaiscommented, Apr 25, 2019

@ivictor777 the version on npm is not compatible with Node.js 12

In the meantime you should or use Node.js 10, or try one of the pre-releases of version 2 of the addon (it’s experimental tho, so keep that in mind):

yarn add node-libcurl@next

Check the CHANGELOG.md for the current list of changes

0reactions
JCMaiscommented, Feb 6, 2020

@geo-dev-cr feel free to elaborate on the issue you are having and if possible posting a sample scenario to reproduce the issue. If it’s not exactly the same than the one reported here, open a new issue.

Just commenting it’s not working and saying the year is not going to help anyone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-libcurl installation fails on MacOS Catalina: clang: error
The problem comes from newer versions of Xcode command line tools on recent MacOS versions. The crucial part in the log is:
Read more >
node-libcurl - npm
Start using node-libcurl in your project by running `npm i node-libcurl` ... or if the installation fails, then you will need an environment ......
Read more >
Mac OS - How To Fix “Installation Failed” - YouTube
Mac OS - How To Fix “ Installation Failed ” - Error Occurred While Installing Updates.
Read more >
node-pre-gyp install --fallback-to-build` failed during MeanJS ...
... `node-pre-gyp install --fallback-to-build` failed during MeanJS installation on OSX-node.js. ... HTTPHEADER, ['User-Agent: node-libcurl/1.0'] ); curl.
Read more >
ERROR generated when installing stencil on mac OS
I have followed the directions and installed Xcode and Node.js. I install the Stencil cli in terminal and receive the following error..... lots...
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