Error - Bot wont initialize

module.js:550
throw err;
^

Error: Cannot find module ‘ms’
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/d7a7d6ee-9724-45bd-916e-4426c37ade32/node_modules/.registry.npmjs.org/debug/2.6.9/node_modules/debug/src/debug.js:14:20)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)

Hi @virt0, welcome to the Glitch forum! Can you provide your project name so someone can take a closer look?

This sort of thing is typically related to something being configured incorrectly in your package.json file or a problem during package install. The latter can might be resolved by running enable-pnpm in the console.

My project name is “lostbucks”

I have taken a look at your project, and the issue is that you do not have the ms module inside your package.json.



To install it, follow these steps:


  • go to package.json
  • head over to the top left of the file just above the code inside it.
  • Click on the “add package” button.
  • input ms into the search field.
  • click on ms when it comes up
    • Give it some time to install
  • Then your done!
2 Likes

It worked, thank you so much!!!

1 Like