Discord bot skills-validator error

Hey, I am currently working on a discord bot in glitch but i keep getting this error every time the bot goes down:

internal/modules/cjs/loader.js:613

throw err;

^

Error: Cannot find module ‘skills-validator’

Require stack:

  • /rbd/pnpm-volume/484400da-cc18-45d6-806c-c5aa72507243/node_modules/botkit-discord/node_modules/botbuilder/lib/bots/ChatConnector.js

  • /rbd/pnpm-volume/484400da-cc18-45d6-806c-c5aa72507243/node_modules/botkit-discord/node_modules/botbuilder/lib/botbuilder.js

  • /rbd/pnpm-volume/484400da-cc18-45d6-806c-c5aa72507243/node_modules/botkit-discord/node_modules/botkit/lib/BotFramework.js

  • /rbd/pnpm-volume/484400da-cc18-45d6-806c-c5aa72507243/node_modules/botkit-discord/node_modules/botkit/lib/Botkit.js

  • /rbd/pnpm-volume/484400da-cc18-45d6-806c-c5aa72507243/node_modules/botkit-discord/index.js

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)

at Function.Module._load (internal/modules/cjs/loader.js:526:27)

at Module.require (internal/modules/cjs/loader.js:666:19)

at require (internal/modules/cjs/helpers.js:16:16)

at Object.<anonymous> (/rbd/pnpm-volume/484400da-cc18-45d6-806c-c5aa72507243/node_modules/botkit-discord/node_modules/botbuilder/lib/bots/ChatConnector.js:15:26)

at Module._compile (internal/modules/cjs/loader.js:759:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)

at Module.load (internal/modules/cjs/loader.js:628:32)

at Function.Module._load (internal/modules/cjs/loader.js:555:12)

at Module.require (internal/modules/cjs/loader.js:666:19)

After i run a full delete of node modules (rm -rf node_modules in the console) and re npm install it works, but it is very annoying to have to do that every time it goes down, anyone know a fix?

hmmm, this error sometimes happens when you get close to the max node_modules space. Try running enable-pnpm in the console and see if that helps.

It worked, thanks so much! I will let you know if it works when the bot goes down but by the looks of things, it will! Just a note, is there a special way i should install modules now?