Learning Ionic(Second Edition)
上QQ阅读APP看书,第一时间看更新

Installing TypeScript

Next, we will be installing the TypeScript compiler. As mentioned in Chapter 1, Angular - A Primer, we will be using TypeScript to write the JavaScript code. To install the TypeScript compiler, run the following:

npm install typescript -g

Once TypeScript is successfully installed, we can verify it by running this command:

tsc -v
> message TS6029: Version 1.7.5

The latest version of TypeScript at the time of release of Ionic 3 is 2.2.2. You may need to update the version of TSC to 2.2.2 or higher when working with Ionic 3.