List and reset NPM and Yarn global linked packages, manually or programmatically in Yarn/NPM scripts.