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.

node-libcurl not being installed on node 4.x and mac os x

See original GitHub issue

Seems like there’s not possible to compile old versions of bufferutil@1.1.0 and utf-8-validate@1.1.0. In node 5, only versions @1.2.1 are working. Here is the output log:

$ npm install node-libcurl@0.8.0 --save --save-exact npm WARN prefer global coffee-script@1.10.0 should be installed with -g

bufferutil@1.1.0 install /Users/aberope/robots/kobol/node_modules/slack-cli/node_modules/bufferutil node-gyp rebuild

CXX(target) Release/obj.target/bufferutil/src/bufferutil.o In file included from …/src/bufferutil.cc:16: …/…/nan/nan.h:261:25: error: redefinition of ‘_NanEnsureLocal’ […] gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js💯13) gyp ERR! stack at ChildProcess.emit (events.js:185:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Darwin 15.4.0 gyp ERR! command “/usr/local/Cellar/node/5.8.0/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/aberope/robots/kobol/node_modules/slack-cli/node_modules/bufferutil gyp ERR! node -v v5.8.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok npm WARN install:bufferutil@1.1.0 bufferutil@1.1.0 install: node-gyp rebuild npm WARN install:bufferutil@1.1.0 Exit status 1 […] npm WARN install:utf-8-validate@1.1.0 utf-8-validate@1.1.0 install: node-gyp rebuild npm WARN install:utf-8-validate@1.1.0 Exit status 1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JCMaiscommented, Apr 4, 2016

Probably something strange with npm. Try cleaning the cache and updating npm.

npm cache clean
npm install npm -g

Closing as it’s not related to this project.

0reactions
ghostcommented, Apr 7, 2016

It’s working, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-libcurl - npm
libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, ...
Read more >
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 >
insomnia-node-libcurl - npm Package Health Analysis | Snyk
Windows 32 and 64 bits. Just running npm install node-libcurl should install a prebuilt binary and no compilation will be needed. If there...
Read more >
Installing Node.js via package manager
fnm has cross-platform support (macOS, Windows, Linux) & all popular shells ... To install Node.js 14.x from the command line, run the following...
Read more >
How to Install Node.js and npm on Windows, macOS, and Linux
In this article, we'll demonstrate a step-by-step guideline for installing Node.js on your computer and commencing with your web development journey. Table of ......
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