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.

deleting node_modules directory breaks npm support

See original GitHub issue

If I manually delete the node_modules directory, I get into a state where it’s impossible to compile or run my module.

Apparently somewhere we cache the information that we have installed an npm module, and we refuse to reinstall it. I can’t for the life of me figure out where.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
quintessecommented, Oct 20, 2016

Found it. Testing now.

0reactions
gavinkingcommented, Oct 20, 2016

My bad, it’s working! Thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to clean node_modules folder of packages that are not in ...
Now I want to clean node_modules folder so that only modules listed in package.json stay there and the rest must go, something like...
Read more >
[FEATURE] Do not remove node_modules on npm ci #564
The behavior of deleting the node_module/ directory is troublesome in a Docker-based setup, for the reasons mention in this thread. So we're ...
Read more >
Delete Node Modules like a PRO - DEV Community ‍ ‍
I'm with Windows, and deleting the node_packages folder started to seriously break the system, even when using CMD. It's a miracle how fast ......
Read more >
remove-node-modules - npm
Helps Windows developers remove node modules folder. ... Start using remove-node-modules in your project by running `npm i ...
Read more >
What's Really Going On Inside Your node_modules Folder?
Unfortunately, install scripts do have some legitimate uses, so we can't just remove this feature from npm without breaking the ecosystem. It's ...
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