David Stockdale's Scrapcode

Updating NPM Dependencies

If your like me and you only started using npm to compile Understrap child themes you might be getting annoyed at all the outdated dependencies you keep getting warnings about.

First install npm like usual:

npm install

Then install “npm-check-updates” (you don’t need to do this every time you want to update, just the first time):

npm i npm-check-updates -g

Now you can run “npm-check-updates”:

npx npm-check-updates -u

And if it finds something that can be updated just install npm again:

npm install

And that should fix a few of your outdated dependencies!

Leave a Reply