update node using npm globally code example
Example 1: Please update your node with version 8.11.3 or greater (but not version 10)
nvm install v14.15.0
Example 2: how to update npm
npm install -g npm
nvm install v14.15.0
npm install -g npm