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.

Getting error while using Node v4.2.4

See original GitHub issue

Hello~

Could you help me diagnose my error? Everything was working fine when I was using Node v 0.12.7.

return process.dlopen(module, path._makeLong(filename));
                 ^

Error: dlopen(/Users/angie/projects/node-projects/search-api/node_modules/node-libcurl/lib/binding/node_libcurl.node, 1): Library not loaded: /Users/travis/lib/libcurl.4.dylib
  Referenced from: /Users/angie/projects/node-projects/search-api/node_modules/node-libcurl/lib/binding/node_libcurl.node
  Reason: Incompatible library version: node_libcurl.node requires version 9.0.0 or later, but libcurl.4.dylib provides version 7.0.0

OS: OSX 10.10.5 xcode: 7.2 libcurl: 7.43.0

Thanks!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:36 (17 by maintainers)

github_iconTop GitHub Comments

8reactions
kohanyirobertcommented, Feb 27, 2016

Sorry for updating a closed issue, but I was having the same problem and I was able to solve it without building manually anything.

I just removed the module npm uninstall node-libcurl then reinstalled it npm install node-libcurl --build-from-source after that I saw the following

> node-pre-gyp install --fallback-to-build

  CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o
  CXX(target) Release/obj.target/node_libcurl/src/Easy.o
  CXX(target) Release/obj.target/node_libcurl/src/Share.o
  CXX(target) Release/obj.target/node_libcurl/src/Multi.o
  ...

and then it was working. If I just installed it with npm install node-libcurl the following was logged

> node-libcurl@0.8.0 install /Users/.../node_modules/node-libcurl
> node-pre-gyp install --fallback-to-build

[node-libcurl] Success: "/Users/.../node_modules/node-libcurl/lib/binding/node_libcurl.node" is installed via remote

I don’t know what installed via remote means, but essentially it doesn’t work that way, only if the library is built locally. Hope this helps others.

7reactions
meabedcommented, Sep 27, 2017

@simiansim you are right, i have installed

npm install node-pre-gyp -g
npm install node-libcurl --build-from-source --fallback-to-build

and it works just fine, i am sure this travis issue is something but the message displayed is wrong maybe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while installing "materializecss" with npm - Stack Overflow
Try to delete the entire node_modules folder and re run npm install.
Read more >
Installing node-oracledb on Microsoft Windows
In this article, we will cover what is needed to get node-oracledb installed and working on Microsoft Windows. This article is geared to ......
Read more >
Node.js - CloudBees Documentation
If you have a npm version specified in your package.json file, it won't get picked up by nvm automatically. Please include the following...
Read more >
Error nvm is not compatible with the npm config prefix option
I am trying to run another NodeJS version with nvm but getting this error: $ nvm use v4.2.4 nvm is not compatible with...
Read more >
Node.js v4.2.4 Release Brief - NodeSource
It also includes an updated npm license which once again better reflects npm's Artistic 2.0 licensing. As with all releases within major ...
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