Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson: Failed to load c++ bson extension, using pure JS version
Solution 1:
Find in npm module mongodb:
..\node_modules\mongodb\node_modules\bson\ext\index.js
Change path to js version in catch block:
bson = require('../build/Release/bson');
To:
bson = require('../browser_build/bson');
Or copy file in:
..\node_modules\bson\build\Release\bson
From:
..\node_modules\bson\browser_build\bson
Solution 2:
I had this issue today (Feb 19th, 2016) and I solved it just by installing the latest version of Mongoose. Try putting this in your package.json:
"mongoose": "~4.4"
Hope that helps. Solved it for me!