Today I Learned - Rocky Kev

TIL Npx npm-check-updates

POSTED ON:

TAGS:

Updating packages is frequent chore to do so you are always running the latest security patches.

To do that:

Step 1: npx npm-check-updates -u

That updates all the major versions of your packages.

Step 2: Then run npm install to install everything.

Step 3: Finally, run and test.

For my projects, that often breaks code. Major versions of packages often change how configurations/setup works.

But spending some time doing this upkeep will ensure that vulnerabilities will be patched up!

Via Upgrading npm dependencies


Related TILs

Tagged:

TIL what is npm Script

Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

TIL keywords in package.json

Today I learned what keywords are in a package.json file! It's a collection of keywords about a module. Keywords can help identify a package, related modules and software, and concepts.

TIL functional async/await

PLACEHOLDER