How to update package.json libraries to the latest version>

Update package.json version

Installing npm-check-updates will provide you with the command ncu that will update your package.json with the latest library version automatically.

Install the command with:

sudo npm i =g npm-check-updates

Then execute the next command:

ncu -u