MMilad

Writing

1 min read

How to install typescript on Ubuntu

Milad Ezzat portrait

Milad Ezzat

@miladezzat12

How to install typescript on Ubuntu

1. Install node

Firstly you have to install node, if you haven't done that yet just type these two commands:

curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs

2. Install TypeScript

When your node is installed, you can proceed to install TypeScript:

npm install -g typescript

3. Check if everything works

Now check if everything working properly by typing this simple command:

tsc

You should see a version of TypeScript you just install, and a list of options for tsc command.