$ cnpm install @lerna/clean
@lerna/cleanRemove the node_modules directory from all packages
Install lerna for access to the lerna CLI.
$ lerna clean
Remove the node_modules directory from all packages.
lerna clean accepts all filter flags, as well as --yes.
lerna cleandoes not remove modules from the rootnode_modulesdirectory, even if you have the--hoistoption enabled.
Copyright 2013 - present © cnpmjs.org