How to automate Node projects packages updates

Whether it's a website built with Grunt or Gulp, or just any other Node project, the package updates can be automated with npm-check-updates. I can tell you, it's super handy!

Update: permalink and title to reflect more Node projects and not only Grunt projects. Live and learn.

For instance, if you want to update project’s Grunt or Gulp packages, you need to go to the packages.json file and manually update the version number to each package and then run $ npm update. Tedious, boring, repetative.

Enter npm-check-updates

npm-check-updates does what it says, checks for new versions and updates your package.json file accordingly.



Install it globally (-g):

$ npm install -g npm-check-updates


cd into your project and check for updates:

$ npm-check-updates

This’ll spew out a list of outdated packages for you to inspect. Then update the packages file:

$ npm-check-updates -u

Then use the npm’s built in update command:

$ npm update

And there you have it, nice and easy.


I tried this and couldn’t get the npm-update to work, I reinstalled node and it helped.


  • Janisa says:

    It’s a plraeuse to find someone who can think so clearly

  • levitra says:

    That’s a knowing answer to a difficult question

  • roshe run says:

    Although the Declaration defined human rights, yet there was more than one opinion as to its effect. Some wanted to accord to it the status of an international treaty or agreement whereas there were others who refused to accept it as a statement of legal obligations. In any case, it had served to enunciate in precise terms the obligations, which members of the U.N. had already accepted while subscribing to its Charter. On its basis, the General Assembly condemned the apartheid legislation enacted by South Africa as “contrary to the Charter and the Universal Declaration of Human Rights”.
    roshe run

  • China is frightening both Laos and Vietnam by the concentration of regular Chinese troops along their borders. She led an attack against Vietnam in order to teach her a lesson for helping the installation of Heng Samorin Government in Kampuchea.
    women roshe run

Club-Mate, the beverage →