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
While creating setup for www.spotdekho.com in new windows10 machine, I was unable to run command "nodemon web.js" due same error
"Error: Cannot find module '../build/Release/bson'"
Got it fixed by below steps :
- Create folder "Release" inside "node_modules\bson\build\" location
- Copy bson.js from "node_modules\bson\browser_build\"
- Paste bson.js inside "node_modules\bson\build\Release" folder.
This will resolve the issue.
PS : I am using mongoose version 4.8.8 .
Thanks :) , hope it helps someone .