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
The problem is when you install mongoose via npm it assumes you have python installed on your windows and tries to build required libraries. Since you do not have python it skips building phase with a warning. But when you start your application, required modules are not there so you get this error.
In order to do things right first install python (version 2.7) on your computer from: https://www.python.org/downloads/ or if u have installed chockolatey just type choco install python2.
Then make sure your python variable is set. You can set it on command prompt like:
SET python=D:\Python27\python.exe
(Of course you should change the path according to your location of python) Then install node-gyp:
npm install -g node-gyp
Now you can reinstall mongoose or whatever module causing the problem:
npm install mongoose
You will see some yellow lines instead of red ones this time but the error will be gone.