error with MongoDB 3.0 in windows 7

71 views
Skip to first unread message

chahnez hachaichi

unread,
Mar 26, 2015, 7:20:09 AM3/26/15
to node-mong...@googlegroups.com
I have this error after installing mongoDB 3.0 and chaging 
bson = require('../build/Release/bson');
into
bson = require('../browser_build/bson'); 


C:\Node\nodetest1\node_modules\monk\node_modules\mongodb\node_modules\mongodb-co
re\node_modules\bson\ext\index.js:36
exports.BSON.BSON_BINARY_SUBTYPE_DEFAULT = 0;
                                         ^
TypeError: Cannot set property 'BSON_BINARY_SUBTYPE_DEFAULT' of undefined
    at Object.<anonymous> (C:\Node\nodetest1\node_modules\monk\node_modules\mong
odb\node_modules\mongodb-core\node_modules\bson\ext\index.js:36:42)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at C:\Node\nodetest1\node_modules\monk\node_modules\mongodb\node_modules\mon
godb-core\node_modules\bson\lib\bson\index.js:42:19
    at Array.forEach (native)
    at Object.exports.native (C:\Node\nodetest1\node_modules\monk\node_modules\m
ongodb\node_modules\mongodb-core\node_modules\bson\lib\bson\index.js:41:3)

what can i do? i have posted in many forums and i didn't found the solution
Reply all
Reply to author
Forward
0 new messages