npm upgraded package code example
Example 1: update all dependencies npm
npm update //update all local packages
Example 2: update npm
npm install -g npm@latest
// for global install
npm update //update all local packages
npm install -g npm@latest
// for global install