Categories
JavaScript Answers

How to fix Node.js cannot find module ‘mongodb’?

Spread the love

To fix Node.js cannot find module ‘mongodb’, we install the mongodb package.

To do this, we run

npm install mongodb 

to install the mongodb module in our project folder.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published.