npm command to update package based on package.json code example
Example 1: npm update
npm install -g npm@latest
Example 2: update all dependencies npm
npm update //update all local packages
npm install -g npm@latest
npm update //update all local packages