Skip to main content

How to install TypeScript

How to install TypeScript





Hey guys you must have read my TypeScript post and if not i recommend it first.

Now if you have finished with reading i am here to assist you to set up your TypeScript developer environment.

There are many ways you can install TypeScript but here we will discuss installing via npm as this is the easiest way to install TypeScript according to me. Without creating a further delay lets lets get started.

Via npm :-

Typescript is available in npm (node package manager) resistery as a package name as "typescript".
We will be installing TypeScript globally so you can use the "tsc" command anywhere in your terminal.

Here are the steps to install TypeScript

1. Firstly you have to install "node.js" in your system from their official website.
Note:- Choose a compatable version with your system.

2. After downloading node install it your system.
Note:- Do not change any defaults if you don't know what are you doing 

3. Now you have installed node in your system. Its time to check weather you have installed it correctly or not. To check it open up power shell and type [ node -v]  and hit enter. If you get the version of the node installed then you are on right track.

4. Now moving further type the command [ npm install -g  typescript ] and hit enter this will start installing TypeScript.

5. After installing to verify the successful installation of TypeScript. Open up the power shell and write the command [ tsc -v] this will return the Typescript version you have installed then congratulations you have installed TypeScript in your computer.


Popular posts from this blog

Learn web developement for free

 Learn web developement for free  If you ever wanted to learn web developement and you do not have the money to pay to the expensive online courses. Here i came to help you to give you a list of website were tou can learn web developement for free and even some of the listed sites will give you certificates for the completion of the course. You can easily can start learning from these sites . Some things i want to tell you that if you master the any course you must be consistent and practice what you have learn. 1. Coursera ( Visit ) and Udemy ( Visit )  These are the two platforms where you can get huge list of free and paid courses not only  limited web development. In these platform you can get good free courses. They have courses in the form of video lectures. In Coursera you can get apply for a course scholarship. If your application got selected you can get a paid course for free. Most of the courses on these platforms reward you with certificates and have some...

Typescript overview

 TypeScript overview TypeScript is an open-source object oriented language developed and maintained by Microsoft. As its name suggests it is related to JavaScript. It extends JavaScript by adding features which originally JavaScript lags. TypeScript was first released in October 2012. Why to use TypeScript JavaScript is a programing language used primarily by web browsers to create a dynamic and interactive experience for the users. But like every other programing language it has its own flaws which leads the developers in spending more time in debugging than coding. TypeScript solves a major portion of problems in JavaScript. TypeScript simplifies JavaScript code, make it easier to read and debug. In the following way. TypeScript adds a robust system of types TypeScript. If you are from a typed language background like c, c++, java then you will know that in JavaScript there are no types by default. That means it is very easy to make errors in JavaScript like syntax, code logics o...

Best Text Editor in 2020 for windows, max, linux.

What is a text editor? A editor  is a program that allows you to open, view and edit plain text files. Unlike word processor, text editors do not add formatting to text, instead focussing on editing functions for plain text. Like notepad, but in order to provide most of the modern conveniences like syntax linting, error correction, project folders organisation and build tools now text editors provide all this and much more. Best text editors in 2020 are :- 1. Sublime Text Sublime text allows you to write code efficiently. Here you can do all that you want to do within the coding process, and it has lots of plugins and packages to customize the platform directly to your needs. Sublime text is build on python and c++. The latest version of sublime text is known as sublime text 3.   Top features of Sublime Text  Go to anything using this you can open files with only a few keystrokes and instantly jumps to symbols, lines or words. Multip...