how to update package.json file npm code example
Example 1: npm update all
npm update --save
Example 2: update all dependencies npm
npm update //update all local packages
npm update --save
npm update //update all local packages