npm how to update latest code example
Example 1: update npm
// update npm//
npm install -g npm@latest
Example 2: npm package update to latest
npm install -g npm-upgrade
// update npm//
npm install -g npm@latest
npm install -g npm-upgrade