Upgrade to latest Node 8/carbon
from 8.11.3
nvm install lts/carbon --reinstall-packages-from=8.11.3
Upgrade to latest LTS (which is lts/erbium -> v12.13.0
at the current moment)
nvm install lts/* --reinstall-packages-from=8.11.3
NOTE: To show available lts, use nvm list
.
Update npm
nvm install-latest-npm
Upgrade Node and npm together
nvm install lts/* --reinstall-packages-from=default --latest-npm
Remove old version
nvm uninstall 8.11.3