1/27/2017 - 6:51 PM

check update

check update

####1 opção####
Another nice package which I used for migrating form a beta version of Angular2 to Angular2 2.0.0 final is npm-check-updates

It shows the latest available version of all packages specified within your package.json. In contrast to npm outdated it is also capable to edit your package.json, enabling you to do a npm upgrade later.


sudo npm install -g npm-check-updates


ncu //for display

ncu -u //for re-writing your package.json

####2 opção#####
npm update --save    

//will update all packages inside package.json to their latest version according to their defined version range.

If you only want to update a specific package, for example core-js, then you can use npm update core-js --save.

Important update: If you want to update from a version prior to 2.0.0-rc.1, then you'll need to manually edit package.json, as Angular was split into several npm modules. Without this, as angular2 package points to 2.0.0-beta.17, you'll never get to use the latest version of Angular. 
A list with some of the most common modules that you'll need to get started can be found in the quickstart guide.

Note: A cool way to stay up to date with your packages' latest version is to use 

npm outdated 

which shows you all outdated packages together with their wanted and latest version. The wanted column should give you an idea on how the packages would update