deleting node_modules directory breaks npm support
See original GitHub issueIf 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:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found it. Testing now.
My bad, it’s working! Thanks again.