I am getting the below error:
{ [Error: Cannot find module \'../build/Release/bson\'] code: \'MODULE_NOT_FOUND\' }
js-bson: Failed to load c++ bson extens
In my case, the bits that come with mongoose (npm install mongoose) have a working version of the mongodb package in its node_modules folder.
The following steps saved me the work of troubleshooting the issue:
npm install mongoosenode_modules\mongoose\node_modules\mongodb to my root node_modules folder (overwriting any version that came with npm install mongodb)Failed to load c++ bson extension... error (or change the code to be silent on the issue)