installed mongodb using 'npm install -d', dependency is defined in package.json'