npm update package.json to latest version of dependencies code example Example: update all dependencies npm package.json npm i -g npm-check-updates ncu -u npm install