install node before mongo code example Example: how to install mongodb in node js npm install mongodb --save