DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Alexa Skill With TypeScript
  • Build Quicker With Zipper: Building a Ping Pong Ranking App Using TypeScript Functions
  • TypeScript: Useful Features
  • Build a Serverless App Fast With Zipper: Write TypeScript, Offload Everything Else

Trending

  • How TIBCO Is Evolving Integration for the Multi-Cloud Era
  • Leveraging FastAPI for Building Secure and High-Performance Banking APIs
  • The State of Data Streaming for Digital Natives (Born in the Cloud)
  • SAP Business One vs. NetSuite: Comparison and Contrast of ERP Platforms
  1. DZone
  2. Coding
  3. JavaScript
  4. How to Install TypeScript and Node.js: TypeScript Tutorial for Beginners

How to Install TypeScript and Node.js: TypeScript Tutorial for Beginners

This post will cover how to install Node.js and then proceed with installation of TypeScript using the Node Package Manager.

Kunal Chowdhury user avatar by
Kunal Chowdhury
·
Jul. 01, 18 · Tutorial
Like (2)
Save
Tweet
Share
73.17K Views

Join the DZone community and get the full member experience.

Join For Free

TypeScript is an open-source programming language, developed and maintained by Microsoft, and hosted on GitHub. TypeScript is a superset of JavaScript and can be used to develop JavaScript applications for both client-side and server-side.

This post will cover how to install Node.js and then proceed with installation of TypeScript using the Node Package Manager.

To get started with TypeScript installation, you need to first install Node.js in your system. Node.js is an asynchronous event-driven JavaScript runtime, built on Chrome's V8 JavaScript engine, which uses non-blocking I/O model that makes it lightweight and efficient to build scalable network applications.

The installer comes with Node and npm, where npm is the package manager for JavaScript. It consists of a command line client and an online database, called npm registry, which contains public and paid-for private packages.

Node.js Installation

To begin with Node.js installation, head over to https://nodejs.org/en/ in your browser window, where you will see a page like the following one. The installer under the LTS tab is recommended for most of the users, whereas the installer under the Current tab is the latest version of Node. Let's download the latest version, which is 10.0.0 in our case.

Once downloaded, double-click on the installer file and follow the step-by-step process to install the Node.js in your computer. Make sure that the Node.js runtime, npm package manager, and Add to PATH are selected for installation. You will need administrative privileges on your system to complete the installation.

Now open any Console Window (cmd.exe) and type the following command, node -v, to confirm whether the installation was successful. This will return the installed version number in the console output, which is v10.0.0 in our case. If everything looks good, proceed with the next point to install TypeScript.

TypeScript Installation

As you have already installed Node, it's time to install the TypeScript Package using the Node Package Manager (NPM). To begin with the installation, open any Console Window ( cmd.exe) and enter the following command in the prompt:

npm install -g typescript

This will download the latest version from the server, extract it and install on your system. A progress indicator will be shown, marking the current progress of the installation. Here's the screenshot of the final output, for your reference:

Once you are done with the installation, type tsc in the command prompt and hit Enter. This will list the TypeScript Compiler Usages on the console window.

TypeScript Installation Using Visual Studio 2017

If you are using Visual Studio 2017, you can simply install it to your Visual Studio IDE from the Visual Studio 2017 installer. Run the installer and click Modify to customize the installation components. Navigate to the Individual components tab and select the desired version of TypeScript SDK that you want to install. Click Modify to perform the installation:

What's Next?

That's all for today. In the next post, we will learn more about TypeScript and begin with app development using it. Till then, enjoy reading my other articles/posts.

TypeScript Node.js

Published at DZone with permission of Kunal Chowdhury, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Alexa Skill With TypeScript
  • Build Quicker With Zipper: Building a Ping Pong Ranking App Using TypeScript Functions
  • TypeScript: Useful Features
  • Build a Serverless App Fast With Zipper: Write TypeScript, Offload Everything Else

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: