How to update each dependency in package.json to the latest version?

If you have a package.json file with statically defined versions the day is probably going to come where you will need to update. To do so you can run

npm i -g npm-check-updates
npm-check-updates -u
npm install