How do I correctly upgrade angular 2 (npm) to the latest version?

dragonmnl :

Recently I started Angular 2 tutorial at https://angular.io/docs/ts/latest/tutorial/.

and left off with Angular 2 beta 8. Now I resumed the tutorial and latest beta is beta 14.

If I simply do npm update a few modules (preloaded with the tutorial) are updated but not Angular2 (I can see that with npm ls).

If I do npm update angular 2 or npm update [email protected] it just does nothing either.

Cosmin Ababei :

The command npm update -D && npm update -S will update all packages inside package.json to their latest version, according to their defined version range. You can read more about it here.

If you want to update Angular 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.21, 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 repository.

Notes:

  • 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 reason why we need to chain two commands, npm update -D and npm update -S is to overcome this bug until it's fixed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How do I upgrade to the latest version of Shotwell?

How do I upgrade PHP version to the latest stable released version?

How do I upgrade my kernel in CentOS 6 to the latest version?

How do I upgrade pear from 1.4.9 to the latest version?

How do I upgrade Filecoin Lotus to the latest version?

How do I upgrade Vagrant to the latest version in Ubuntu?

How do I install the latest minor version of a package on npm?

How to upgrade Angular CLI to the latest version

How do you upgrade Skype to the latest version?

How do you update npm to the latest version?

How can I upgrade my WSO2 Identity server version 4.5 to latest version directly?

How can I upgrade the version of router in angular 2?

How do I get Portage to always select to install and upgrade to the latest available version of selected software?

How to upgrade npm version

How to upgrade Angular to the latest?

How can I upgrade the "find" command to the latest version?

How to upgrade nodejs to latest version

How to upgrade VirtualBox to the latest version?

How to upgrade SAMBA to latest version?

How to upgrade to the latest GNOME version?

How to upgrade Blobfuse to the latest version

Right now i have the latest angularfire2 version. How do i degrade to the previous version?

How to know npm package compatibility with Angular version prior install or upgrade?

How do I update zsh to the latest version?

How do I install the latest version of Matlab?

How do I update to the latest version of SASS?

How do I update to the latest version of `serve`

How do I upgrade the version of a maven plugin?

How do I upgrade qt version?