Error: Cannot find module 'follow-redirects'

I don’t know when/since this error occured. I let my app running 24/7 without changing any code then my bot went offline. I checked my app and it gave me this error.

    throw err;
Error: Cannot find module 'follow-redirects'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/rbd/pnpm-volume/6e0a6c9d-8740-4d20-a155-1b8398a6109b/node_modules/
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

This error also occured few month ago. But i able to fixed it after i updated some of my packages. Right now i updated all of my packages but it still gave me that error.

Hey @Veinify,

  1. Try running enable-pnpm in the console.
  2. Or do npm i follow-redirects.