Cannot load module, even though it is in my package.json

In my project, I get the following error even though I have express in a package.json file:

Error: Cannot find module ‘express’
10:37 PM

at Function.Module._resolveFilename (module.js:538:15)

10:37 PM

at Function.Module._load (module.js:468:25)

10:37 PM

at Module.require (module.js:587:17)

10:37 PM

at require (internal/module.js:11:18)

10:37 PM

Jump to
at Object. (/app/server.js:5:15)
10:37 PM

at Module._compile (module.js:643:30)

10:37 PM

at Object.Module._extensions..js (module.js:654:10)

10:37 PM

at Module.load (module.js:556:32)

10:37 PM

at tryModuleLoad (module.js:499:12)

10:37 PM

at Function.Module._load (module.js:491:3)

Hi, I was unable to access the project via the editor. Can you send me an invite via DM so I can help you out?

Or at least share your package.json code, so we can take a look.

I see you withdrew your last post - were you able to fix the issue?

I have the same issue

  "name": "LAZYbot",
  "version": "1.0.8",
  "description": "Discord bot operating in the House server just to further lazy's understanding of basic js. ",
  "main": "lazybot.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node lazybot.js"
  "keywords": [
  "homepage": "",
  "author": "theLAZYmd",
  "license": "ISC",
  "dependencies": {
    "discord.js": "^11.2.1",
    "enmap": "^0.3.2",
    "moment": "^2.18.1",
    "moment-duration-format": "^1.3.0",
    "express": "^4.16.0"
Can anyone help?

There was a bug causing this which has since been fixed. I’m assuming you have a watch.json file with a long throttle value in your project preventing it from picking up the change. Please rename that file temporarily and update the package in the package.json file. That should fix up the issue. After which you can rename the watch.json file back.