nvm install --reinstall-packages-from=default

Category: Node.js & npm/yarn

nvm install --reinstall-packages-from=default

Reinstall global packages into a new Node

Installs the requested Node version and copies every globally installed package from the default version into it, preserving your toolchain across upgrades. The flag follows nvm install, before the version argument. Avoids re-installing eslint, prettier, and friends by hand.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.