4 ms·
Npm and yarn can't garbage collect transitive dependencies once they're unreachable from the explicitly installed roots? I think apt could do that since forever
by bitwize 3y ago
Npm and yarn can't garbage collect transitive dependencies once they're unreachable from the explicitly installed roots? I think apt could do that since forever ago (with apt-get autoremove).
Maybe the officially supported way to prune the dependency tree is to blow away node_modules and then do npm install or yarn install. How stone-knives-and-bearskins.
- Kinrany 3y agoPnpm can IIRC!