I just fixed the errors I was getting when I run npm i
This is how I did (for future reference purposes):
Fixing the "missing mongodb" error: 21/2 14:45 [3950] - error: Unable to initialize MongoDB! Is MongoDB installed? Error :Cannot find module 'mongodb' 21/2 14:45 [3950] - error: Error: Cannot find module 'mongodb' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17)Fix: npm i mongodb
Fixing the issue with unmet dependencies (as shown in my last post on this topic): npm WARN unmet dependency ~/forum/nodebbrepo/node_modules/lwip requires async@'~0.9.0' but will load npm WARN unmet dependency ~/forum/nodebbrepo/node_modules/async, npm WARN unmet dependency which is version 1.4.2 npm WARN unmet dependency ~/forum/nodebbrepo/node_modules/nconf requires async@'~0.9.0' but will load npm WARN unmet dependency ~/forum/nodebbrepo/node_modules/async, npm WARN unmet dependency which is version 1.4.2 npm WARN unmet dependency ~/forum/nodebbrepo/node_modules/redisearch requires async@'~0.9.0' but will load npm WARN unmet dependency ~/forum/nodebbrepo/node_modules/async, npm WARN unmet dependency which is version 1.4.2Fix: npm install <name of the module>
Now when I run npm i, there no errors or warningsI hope those will help someone in the future.
Now, let me go back to dealing with my original issue of the long-overdue upgrade 🙂