I'm using Windows.
I've installed mongodb module using next command:
npm install -g mongodb
mongodb module is listed when I type:
npm ls -g
But when I'm trying to do require('mongodb'); Node gives me an Error: Cannot find modue 'mongodb'.
When I include mongodb with absolute path it's included fine:
require('C:\\Users\\Evgeniy\\AppData\\Roaming\\npm\\node_modules\\mongodb');
Any ideas what I'm doing wrong?
 
     
    