Hi Thoai, 

If your web application is a common CRUD  you can test this module: 
https://www.npmjs.com/package/mpill
That module helps you to encapsulate the connect and db close and you do 
not need to be worried about db connections.



El miércoles, 4 de febrero de 2015, 11:08:33 (UTC-5), [email protected] 
escribió:
>
> Hello,
>  
> I installed mongodb (linux 64-bit version 2.6.7) - MongoDB seems to work 
> fine.  I installed mongodb driver on Node v0.10.36 via npm install mongodb.
>  
> I ran mongodb in /data/db directory.
>  
> I got an error message: "[Error: 
> /data/projects/nodejs/mode_modules/mongodb/node_modules/bson/build/Release/bson.node:
>  
> invalid ELF header] js-bson: Failed to load c++ bson extension, using pure 
> JS version" when trying to execute the below one line of code via running  
> /data/projects/nodejs/tc4_mongodb_server.js:
>  
> var mongo = require('mongodb').MongoClient;
>  
> Please provide any suggestion(s) to fix this problem?
>  
> Thanks,
> >>Thoai
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/cc889398-bf37-4875-9546-27836e7f30c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to