Replies: 3 comments
-
I don't know anything better than removing I made yarn plugin just for that - after adding the plugin, you can run |
Beta Was this translation helpful? Give feedback.
-
Maybe you could try the official plugin |
Beta Was this translation helpful? Give feedback.
-
I tend to just add a script in package.json for the extremely rare occasions. I don't remove the install-state as it does not seem to create issues. {
"scripts": {
// The glob **/ is for monorepos
"nuke:node_modules": "rimraf '**/node_modules'",
},
"devDependencies": {
"rimraf": "3.0.2",
}
} Just run |
Beta Was this translation helpful? Give feedback.
-
What's the best way to rebuild my node_modules folder?
Context: sometimes I like to mess around manually in there, maybe typing .js files manually inside node_modules folder.
Would it be to run:
??
I find this method is slow, back in yarn v1 I would use https://classic.yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-check-files
Beta Was this translation helpful? Give feedback.
All reactions