update node on windows

JavaScript
//check node version
>node -v
// let's install a program called n that will let us easily switch 
//between Node versions.
>npm install -g n
//Upgrading to the latest stable version
>n stable 
//Changing to a specific version
>n 10.16.0
npm install -g node@<version>Download and run the latest MSI. The MSI will update your installed node and npm.#Run PowerShell as Admin

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade
Source

Also in JavaScript: