how to install mongodb globally driver node js code example Example: mongodb npm npm install -g mongodb npm install -g mongoose