Picture of Tom Greenfield
Re: Error: Cannot find module 'mongodb'
by Tom Greenfield - Tuesday, 29 October 2019, 9:44 AM
 

The first error looks to be a symptom of the Node dependencies being upgraded while still use – this can, in theory, be ignored since the module in question is migrate-mongoose, and there aren't any migrations bundled with the 0.10.1 release.

The second error, however, is more crucial. I suggest you try reinstalling the dependencies and rebuilding the app by running:

rm -r node_modules
npm install --production
grunt build:prod
node server