-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
The 2.1.3 driver should either be fixed to work with Node 0.8, or marked as not compatible in package.json so it isn't selected for installation by npm.
To reproduce:
bash-3.2$ node -v
v0.8.28
bash-3.2$ npm install mongodb
...
bash-3.2$ npm ls
npm WARN package.json mongo-test@0.0.0 No repository field.
npm WARN package.json mongo-test@0.0.0 No readme data.
mongo-test@0.0.0 /private/tmp/mongo-test
└─┬ mongodb@2.1.3
├── es6-promise@3.0.2
├─┬ kerberos@0.0.17
│ └── nan@2.0.9
├─┬ mongodb-core@1.2.31
│ └── bson@0.4.20
└─┬ readable-stream@1.0.31
├── core-util-is@1.0.2
├── inherits@2.0.1
├── isarray@0.0.1
└── string_decoder@0.10.31
bash-3.2$ node
> require('mongodb')
TypeError: Cannot read property 'prototype' of undefined
at Object.exports.inherits (util.js:538:43)
at Object.<anonymous> (/private/tmp/mongo-test/node_modules/mongodb/lib/gridfs-stream/download.js:46:6)
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)
at require (module.js:378:17)
at Object.<anonymous> (/private/tmp/mongo-test/node_modules/mongodb/lib/gridfs-stream/index.js:2:30)
at Module._compile (module.js:449:26)
> bash-3.2$