Luke Baughan
Luke Baughan

Reputation: 4686

What steps are requried to upgrade from Angular2 RC2 to RC4

What steps are required to upgrade an existing Angular2 RC2 app to RC4? I've updated my package.json file like so (see below) and have run npm update on the root folder but it still references the old versions of the angular packages in node modules folder from RC2.

Ive checked the change logs and release notes and searched google but to no avail. The app runs but crashes when referencing the new ngModel related form functionality that also wasn't working in RC2. Im trying to update to RC4 to use the new forms module to see if that resolves my underlying form issue.

Original

 "dependencies": {
    "@angular/common":  "2.0.0-rc.2",
    "@angular/compiler":  "2.0.0-rc.2",
    "@angular/core":  "2.0.0-rc.2",
    "@angular/forms": "0.1.0",
    "@angular/http":  "2.0.0-rc.2",
    "@angular/platform-browser":  "2.0.0-rc.2",
    "@angular/platform-browser-dynamic":  "2.0.0-rc.2",
    "@angular/router":  "3.0.0-alpha.7",
    "@angular/router-deprecated":  "2.0.0-rc.2",
    "@angular/upgrade":  "2.0.0-rc.2",

Modified

 "dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/forms": "0.2.0",
    "@angular/http": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/router": "3.0.0-beta.1",
    "@angular/router-deprecated": "2.0.0-rc.2",
    "@angular/upgrade": "2.0.0-rc.4",

Upvotes: 2

Views: 1994

Answers (1)

pd farhad
pd farhad

Reputation: 6432

Can you do npm install instead of update in your project directory?

Upvotes: 3

Related Questions