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
(在您的情况下,NEW_VERSION = 5.4 OLD_VERSION = 5.0)
Alternatively, try:
(或者,尝试:)
nvm install stable
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…