How to properly upgrade node using nvm

This may work: nvm install NEW_VERSION –reinstall-packages-from=OLD_VERSION For example: nvm install 6.7 –reinstall-packages-from=6.4 then, if you want, you can delete your previous version with: nvm uninstall OLD_VERSION Where, in your case, NEW_VERSION = 5.4 OLD_VERSION = 5.0 Alternatively, try: nvm install stable –reinstall-packages-from=current