how to upgrade to latest node version code example
Example 1: upgrading node on mac
1 brew update
2 brew upgrade node
Example 2: udpate node terminal windows
#Run PowerShell as Admin
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade