Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation doesn't work due to nodegit issue #2

Open
aspiers opened this issue Sep 1, 2017 · 0 comments
Open

Installation doesn't work due to nodegit issue #2

aspiers opened this issue Sep 1, 2017 · 0 comments

Comments

@aspiers
Copy link

aspiers commented Sep 1, 2017

I installed via npm install -g gitwalk as directed, but running gitwalk produces

module.js:472
    throw err;
    ^

Error: Cannot find module '../build/Debug/nodegit.node'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/adam/.npm-packages/lib/node_modules/gitwalk/node_modules/nodegit/lib/nodegit.js:16:12)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

This seems to be the exact issue described by nodegit/nodegit#137, and to some extent nodegit/nodegit#521. According to a comment by @maxkorp, it seems that the nodegit folks were intending to make this error message less cryptic, but didn't get round to it yet. Anyway I found that I could fix this via:

cd ~/.npm-packages/lib/node_modules/gitwalk/node_modules/nodegit
npm install

This forced a build from source, and now it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant