EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • All Courses
    • All Specializations
  • Blog
  • Enterprise
  • Free Courses
  • All Courses
  • All Specializations
  • Log in
  • Sign Up
Home Software Development Software Development Tutorials TypeScript Tutorial How to Install Typescript
 

How to Install Typescript

Priya Pedamkar
Article byPriya Pedamkar

Updated April 8, 2023

How to Install Typescript

 

 

Introduction to Typescript

The following article provides an outline for How to Install Typescript. Typescript is a programming language owned and maintained by Microsoft. It is an open-source as well as an object-oriented programming language. Typescript is the superset of JavaScript since it contains all of JavaScript’s elements along with components such as classes, modules, interfaces, and types. The main feature of Typescript is its Static typing approach. The typescript was first introduced in October 2012 by Microsoft.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

We need to install Node.js in order to install Typescript. Node.js is a JavaScript runtime. It is asynchronous and event-driven. It uses a non-blocking I/O model. We can easily build scalable network applications which are not only lightweight but also efficient. Node.js is built on Chrome’s V8 JavaScript engine. In this article, we will see the process of installing Node.js. After that, using the Node Package Manager, we will install TypeScript.

How to Install Node.js?

Given below are the steps required to install Node.js:

Step 1: Firstly, we need to go to the node.js website:

https://nodejs.org/en/

Node.js Installation Step 1

Step 2: Then, we need to download the node.js installer by clicking the Current version button:

Node.js Installation Step 2

Step 3: Once the download is complete, we need to open the downloaded file. Upon opening the file, we will see a Node.js setup wizard, which will guide us through the rest of the process to install Node.js. Click on the Next button.

Node.js Installation Step 3

Step 4: After clicking the next button, the following screen will come up. This screen will display the license agreement. This shows us the End User Licence Agreement. This agreement mentions various terms of usage to which we need to adhere. It is recommended to read the terms carefully.

The below screenshot shows how it would look:

Node.js Installation Step 4

Step 5: Once we have read the terms in the End User Licence agreement and is satisfied, we need to check the “I accept the terms in Licence Agreement” checkbox.

Please follow the below screenshot. Once checked, we need to click the next button:

Node.js Installation Step 5

Step 6: On clicking the next button, the following screen comes up. This window asks us for a “Destination Folder” where we would like to install our Node.js operational files. We need to enter the destination folder and click on the “Next” button.

Node.js Installation Step 6

Step 7: The next step is configuring our installation with some custom setup. Since our installation for Typescript does not require any customization, we would simply click the Next button and skip to the next window.

Node.js Installation Step 7

Step 8: The next window is to optionally install the tools that are necessary to compile native modules. We do not require any such tools; hence, we skip to the next step by clicking the Next button.

Node.js Installation Step 8

Step 9: This step marks the final stage before the setups run into installing necessary files. We have to click the Install button now. This will install the Node.js required files and begin the installation process.

Node.js Installation Step 9

Step 10: After clicking the install button, the setup wizard will ask for administrative privileges. We grant the privileges, and the setup begins. The below screenshot shows how it looks,

Node.js Installation Step 10

Step 11: Once the process is finished, we will have the following screen. Now click the Finish button. This marks the end of the Node.js setup process.

Node.js Installation Step 11

Steps to Install Typescript

Given below are the steps required to install Typescript:

Step 1: The next step is to install Typescript. To do this, we have to visit the following website:

https://www.typescriptlang.org/

On opening the web page, we will see a download button. We have to click that download button.

TypeScript installation Step 1

Step 2: On clicking the Download button, the following page will open. We need to locate the Install script on the page.

TypeScript installation Step 2

Step 3: The install script will contain a command as below.

Code:

npm install -g typescript

Output:

TypeScript installation Step 3

Step 4: Open the Node.js command prompt window from the start menu. This Node.js command prompt will be available only after installing the Node.js as instructed earlier.

TypeScript installation Step 4

Step 5: Once the command prompt window is open, we will see a screen similar to the following.

TypeScript installation Step 5

Step 6: Now paste the command that we copied in Step 3 above. It will look similar to the following screenshot. Run the command by pressing the Enter key.

TypeScript installation Step 6

Step 7: Now, it will begin to install Typescript. We will be able to see the progress in the command prompt window itself. Please see the screenshot for reference.

TypeScript installation Step 7

Step 8: Once the process is complete, we will see the following in the command prompt window. This marks the completion of the Typescript installation. Now we will be able to code and compile our Typescript codes.

TypeScript installation Step 8

Conclusion

With this tutorial, we can see that installation is very basic stuff for any person who wants to get their hands-on Typescript. Not only it is easy to install Typescript, but we can also practice and enhance our skills to make perfect use of this beautiful language.

Recommended Articles

We hope that this EDUCBA information on “Install TypeScript” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

  1. Install Selenium
  2. Install JavaScript
  3. Install Tableau
  4. TypeScript Versions
Primary Sidebar
Footer
Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

🚀 Limited Time Offer! - 🎁 ENROLL NOW