update npm packages to latest versions - 06-15-22
I was doing some housekeeping on a Node.JS project today. Wanted to update all
the dependencies to their latest versions. At first I tried npm update
but
come to find out that is ment more for upgrading single packages and not
major versions. In the end after some googling I found
npm-check-updates.
To upgrade the dependencies of a project without installing anything else I ran:
$ npx npm-check-updates -u
It updated the package.json so it must be followed up by a:
$ npm i
Which will install the new packages and update the package-lock.json.