I just migrated from connect-mongo v3 to v4. When I ran the application I got the error Error: Cannot find module 'mongodb'
. After some research I tried the command npm link mongodb
which appears to work. But after I shut down my application/server, I get the same error message and have to run npm link mongodb
again. Any ideas why this might be happening?
Edit: I should mention that mongodb
is installed globally.