Photo by Gabriel Heinzer on Unsplash
Updating Node packages
keeping your developer systems and dependencies fresh
To keep our developer systems and dependencies fresh, we can use the following essential commands:
Node
Install n
just once:
$ npm install -g n
When node launches an update just run:
$ n latest
NPM
When NPM launches an update just run:
$ npm install -g npm@latest
Any other package
In general, just run the install script to get the latest version:
$ npm install [packagename]