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