# Upgrade Node with NVM
The following command will install a new version of node, and reinstall all current npm global packages.
nvm install NEW_VERSION --reinstall-packages-from=current
Example:
# This installs the latest node 16, and will install all your current
# npm global packages
nvm install 16 --reinstall-packages-from=current
After that, simply uninstall the old version by
nvm uninstall OLD_VERSION
Posted on: Wed, 02 Mar 2022 10:16:17 GMT