Updating node packages in multiple projects

It’s not that simple to keep your node packages up to date. You can use a service like greenkeeper, but if money is an issue, you’ll need to do the work yourself.

I tend to use ncu, and the easiest way to run it over multiple projects (in the same folder) is using find:

find -maxdepth 1 -type d -exec ncu --packageFile {}/package.json \;

Leave a comment