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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s