Update npm Packages To Their Latest Version
May 2022
The yolo way to do it is:
the npx npm-check-updates -u updates the package.json file with all the latest versions (including major version changes)
then, running npm i does the install of all those latest modules from the package.json file
If you just want to do a single package, do:
npm install PACKAGE_NAME@latestend of line