Cannot find a module that I didn’t even require in package.json?

I’m working on a Discord bot, which was working fine a week ago (I didn’t change anything from then). For some reason, now it’s giving me the following error, and preventing my bot from coming online, or any code from running:

^throw err;

Error: Cannot find module 'on-finished'

Could somebody help? I don’t use this module, nor do I know what it does. I just want my bot to go back online without errors :slightly_smiling_face:

Project here

Hey @insertLenny, welcome to the Glitch forum!

This often indicates a problem with installing your node modules when your project starts up. You might try running enable-pnpm in the console to see if that helps resolve it.

Oh, one thing I neglected to touch on; this package is probably something that’s being required by a package in your dependencies.

Running enable-pnpm fixed it, thanks!

1 Like