Update Typescript in Angular2 project

Konst picture Konst · Dec 1, 2016 · Viewed 26.9k times · Source

I have an Angular2 project using Typescript, in Visual Studio. I want to update Typescript from 1.8 to 2.0.x. In my system I have updated typescript and tsc -v logs Version 2.0.10 The package.json, among others, contains

"devDependencies": {
    ....
    "typescript": "^1.8.10",
    "typings": "^1.3.1",
    ...
}

In order to update typescript, is it enough to change the version to "typescript": "^2.0.10" in the package.json? Also, what is the relation of typescript and typings version, when it comes to update?

Answer

Pardeep Jain picture Pardeep Jain · Dec 5, 2016

For Exact version

For latest release

  • npm install typescript@latest --save-dev