You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Command to clear out node_modules directories #195
Your root node_modules contains lerna itself and many other devDependencies. lerna clean was not designed to be a general replacement for rm, only convenience for removing any node_modules directories under package locations.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Activity
gigabo commentedon Jun 8, 2016
Heh, we've got this in our
package.json:$ grep nuke package.json "nuke": "rm -r node_modules; for d in packages/*/node_modules; do echo $d; rm -r $d; done"Mind if I take this?
jamiebuilds commentedon Jun 8, 2016
Oh man I would love a
lerna nukecommandYeah, go for it
hzoo commentedon Jun 8, 2016
Yeah I had to do that in babel today (rm -rf packages/*/node_modules, rm -rf node_modules) since I didn't see that babylon update caused tests to fail
Add `lerna clean` command
Add `lerna clean` command (#196)
maciej-gurban commentedon May 1, 2018
Is there a reason why
lerna cleanwould not also remove root levelnode_modules?evocateur commentedon May 1, 2018
Your root
node_modulescontains lerna itself and many other devDependencies.lerna cleanwas not designed to be a general replacement forrm, only convenience for removing anynode_modulesdirectories under package locations.lock commentedon Dec 27, 2018
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.