You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OS X EI Capitan solves "Cannot find module './build/Debug/nodegit'" #753
Long long ago I use nodegit v0.1.4 to create a personal project and it worked well. Later node/npm/OSX had been upgraded greatly. Yesterday I accidentally removed all project node_modules and try npm install to rebuild, then the issue appears as title says. I use "n" and tried node versions v0.10.32/v0.10.40/v0.12.7/v4.2, but all unlucky.
Now I just upgrade to OS X El Capitan, the bug disappears for node v0.10.32. Maybe other node versions work too, I'll try soon.
I remember that previously the ./build/Release/nodegit will throw error saying can not load module etc, but now no error thrown and it works well.
Anybody can tell what's wrong and is there a better solution for Yosemite?
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/Cellar/node/5.2.0/bin/node" "/usr/local/bin/npm" "run" "install-deps"
npm ERR! node v5.2.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! project@11.0.0 install-deps: `npm-cache install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@11.0.0 install-deps script 'npm-cache install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the project package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm-cache install
npm ERR! You can get their info via:
npm ERR! npm owner ls project
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/brice/work/the/project/npm-debug.log
@johnhaley81 Thanks that worked, without having to resort to force linking openssl @maxkorp I'm a bit wary to force linking openssl, brew guys had a good reason to make this formula keg only, as it may break other things for osx / xcode.
Activity
saper commentedon Oct 16, 2015
Can you check your node on Yosemite and show me what is says when you enter:
node -p process.configTurbo87 commentedon Dec 9, 2015
I got a similar issue. This is my
node -p process.configoutput:Turbo87 commentedon Dec 9, 2015
Note that it doesn't work with
nvm use 5either, butnvm use 4works.johnhaley81 commentedon Dec 9, 2015
@Turbo87 could you try again please? Binaries are published now and this should work.
bric3 commentedon Dec 10, 2015
@johnhaley81 Actually I have a similar issue, but that's even worse since nodegit won't compile due to lissh2.
I've added log files in a gist
Here's brief version
johnhaley81 commentedon Dec 10, 2015
@bric3 can you update to NodeGit 0.6.0 and try it again?
maxkorp commentedon Dec 11, 2015
Also, if you need to actually build
That's new as of el capitan. Thanks Apple!
Gotta add that to the readme...
bric3 commentedon Dec 12, 2015
@johnhaley81 Thanks that worked, without having to resort to force linking openssl
@maxkorp I'm a bit wary to force linking openssl, brew guys had a good reason to make this formula keg only, as it may break other things for osx / xcode.
bric3 commentedon Dec 12, 2015
For reference here's the successful install log : https://gist.github.com/bric3/6a6ad2d598a7b19d9fb2
Cheers guys :)
maxkorp commentedon Dec 14, 2015
@bric3 yeah, thats specifically for compiling nodegit. with 0.6.0, we have published binaries out so you don't generally need to compile it.
bric3 commentedon Dec 16, 2015
That's good :)
Thanks again