question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'debug'

See original GitHub issue

I’m getting this error:

Error: Cannot find module 'debug'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (myapp/node_modules/koa/lib/application.js:8:13)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

The koa’s version in use is the 1.2.4.

Are there someone having this problem too?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
jonathanongcommented, Dec 29, 2016

rm -rf node_modules; npm install works almost all the time 😆

0reactions
jpravetzcommented, Apr 1, 2017

I had this same problem pop up where it previously had not. It was occurring for me with an alpha version of koa2. I’ve moved to koa 2.2 and it is gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hi, I get this bug here Error: Cannot find module 'debug'
It could be an issue with your local node_modules directory. I would recommend deleting and re-installing it fresh. Then check your local ...
Read more >
Node.js debug doesn't work with Error: Cannot find module at ...
Hi, This worked prior 2016.2. Create a debug configuration for Node.js > add working directory value. Debug won't work with Error: Cannot find...
Read more >
debug - npm
Lightweight debugging utility for Node.js and the browser. Latest version: 4.3.4, last published: 9 months ago. Start using debug in your ...
Read more >
How to debug a node issue that only occurs in 1 of 3 ...
InvocationException: Cannot find module 'fabric' Require stack: - Error: Cannot find module 'fabric' Require stack: - at Function.Module.
Read more >
[Solved]-electron-updater: Can not find module 'debug'-node.js
[Solved]-electron-updater: Can not find module 'debug'-node.js · Many node modules will have "src" folders which have to be packaged/bundled along with your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found