nvm reinstall-packages 20

Category: Node.js & npm/yarn

nvm reinstall-packages 20

Copy global packages into the active Node

Installs every global package from Node 20 into whichever version nvm currently has active, duplicating the toolchain without touching the source. Handy after switching to a new major. The install-time variant is nvm install --reinstall-packages-from.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.