Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Error: Cannot find module './DTraceProviderBindings' - Linux #89

Closed
dandersoncorventis opened this issue Aug 28, 2012 · 1 comment
Closed

Comments

@dandersoncorventis
Copy link

I have a project in a private github repository, which is using ldapjs. I initially installed ldapjs on my local Ubuntu server, which runs on Oracle virtualbox on my Windows 8 laptop. Everything works there just fine. Now, when I performed a 'git pull' on my project up on my integration server and ran the app, I get the error mentioned above.
Node is version: v0.8.4
NPM is version: v1.1.45
NPM List shows:

  • ldapjs@0.5.4
    • asn1@0.1.11
    • assert-plus@0.1.0
    • buffertools@1.1.0
    • bunyan@0.10.0
    • dtrace-provider@0.0.9
    • and so on...

The full trace is shown below:
{ [Error: Cannot find module './DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }

module.js:340
throw err;
^
Error: Cannot find module './build/Release/buffertools.node'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/data/node/node-app/node_modules/ldapjs/node_modules/buffertools/buffertools.js:1:77)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)

Any assistance you can provide would be greatly appreciated.

@dandersoncorventis
Copy link
Author

My apologies for posting this prematurely. This is my issue, not yours. We found that we had to uninstall the ldapjs module on the server and re-install it to force it to recompile everything with the correct compiler. I now need to create a proper package.json file to manage our dependencies file. I am a long time Java developer and this app that I am working on is a prototype to prove that we can deliver the same functionality with nodejs as in java, but be lighter weight, less development time and perform better. So far, so good IMO. I haven't worked with C/C++ in 13 years, so I didn't figure this out right away.

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

No branches or pull requests

1 participant