upgrading nodejs code example
Example 1: update node ubuntu
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Example 2: Please update your node with version 8.11.3 or greater (but not version 10)
nvm install v14.15.0
Example 3: udpate node terminal windows
#Run PowerShell as Admin
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade