how to install package with npm and update package.json code example Example: update all dependencies npm npm update //update all local packages