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

Module.js Error! #3

Open
aadabi opened this issue May 17, 2014 · 2 comments
Open

Module.js Error! #3

aadabi opened this issue May 17, 2014 · 2 comments

Comments

@aadabi
Copy link

aadabi commented May 17, 2014

module.js:340
throw err;
^
Error: Cannot find module './build/Debug/nodegit'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/lib/node_modules/gitbanner/node_modules/nodegit/index.js:17:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

@tbranyen
Copy link
Contributor

This looks like it wasn't compiled correctly. Do you have CMake 2.8 and Python2 installed?

@alexdantas
Copy link

Also happening to me
cmake v2.8.12.2 and python 2.7.6

When I go straight to the source and change require('./build/Debug/nodegit') to require ('nodegit') things get even stranger:


/usr/lib/node_modules/gitbanner/node_modules/nodegit/index.js:21
exports.__proto__ = rawApi;
                  ^
Error: Cyclic __proto__ value
    at Object.<anonymous> (/usr/lib/node_modules/gitbanner/node_modules/nodegit/index.js:21:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/lib/node_modules/gitbanner/index.js:3:11)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

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

3 participants