upgrade an npm package code example
Example 1: update npm
npm install -g npm@latest
Example 2: upgrade npm
npm i -g npm-upgrade
Example 3: update all dependencies npm
npm update //update all local packages
npm install -g npm@latest
npm i -g npm-upgrade
npm update //update all local packages