Google News
logo
TypeScript - Interview Questions
Tell the minimum requirements for installing Typescript. OR how can we get TypeScript and install it?
TypeScript can be installed and managed with the help of node via npm (the Node.js package manager). To install TypeScript, first ensure that the npm is installed correctly, then run the following command which installs TypeScript globally on the system.
$ npm install -g typescript  
It installs a command line code "tsc" which will further be used to compile our Typescript code. Make sure that we check the version of Typescript installed on the system.
 
Following steps are involved for installing TypeScript :
 
* Download and run the .msi installer for the node.
* Enter the command "node -v" to check if the installation was successful.
* Type the following command in the terminal window to install Typescript : $ npm install -g typescript
Advertisement