Upgrade

npm install -g n  // install Node version manager
n stable  // install latest stable version



Downgrade

npm install node@8.10.0  // install version 8.10.0
n 8.10.0  // use version 8.10.0