Monday, November 6, 2017

How to Install TypeScript on your machine using Nodejs Manager

What is TypeScript ?

Type script is type superset of JavaScript that compiles to plain JavaScript.


Installation 
  1. To install TypeScript using node manager CLI, you will have to setup nodejs Manager. For this you can follow the previous post "How to install Nodejs".
  2. After completing the Nodejs installation you can go to command prompt /Powershell on windows and type below command to install the typescript
  3. npm install -g typescript
  4. You might also end up finding below error if you are using proxy Server in your network for the internet connection.
  5. In this case you might want to setup the proxy setting for the npm. 
npm config set proxy http://:@: 
npm config set https-proxy http://:@:

You have to replace , , , with the values specific to your proxy server credentials

How to Install node js on your machine

If you are web developer and / or Mobile App developer, you will surely come across node js. Here in this post I have tried to described list of step to setup node js on your windows machine.

Please follow the step to complete the installation.

  1. 1. Go to the website https://nodejs.org.
  2.  Click on Recommanded for most user version of node js. Here in this case 8.9.0. This can be different based on when you are doing your setup and in popup window select Save file.
  3. After download execute the installer. 
  4. Select Next & Accept the terms and condition
  5. Provide the installation directory
  6. Keep the default selection as node manger also need to be part of installation here.
  7. To start the installation click on Install (This will required your user to have administrator rights.
  8. After successful installation it should show the completion screen as below. Click Finish to complete and exit the installation.