GNU/Linux ◆ xterm-256color ◆ bash 867 views

The demo shows how after a node_modules folder is removed, pnpm store prune can be used to remove all the packages from the global store which are not referenced anymore.

The same command can be used after a pnpm uninstall or other pnpm commands that can leave unreferenced packages in the global store.

pnpm@1.8.0 is used in the demo