DEV Community

loading...
Cover image for How to install typescript on Ubuntu

How to install typescript on Ubuntu

quentindamianino profile image Damian Brdej ・1 min read

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
Enter fullscreen mode Exit fullscreen mode

 

2. Install TypeScript

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

npm install -g typescript
Enter fullscreen mode Exit fullscreen mode

 

3. Check if everything works

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

tsc
Enter fullscreen mode Exit fullscreen mode

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

Discussion (2)

pic
Editor guide
Collapse
joyshaheb profile image
Joy Shaheb

Good Job for posting this Article. But, unfortunately I'll be switching from Ubuntu to Windows 10 again :'(

Collapse
quentindamianino profile image
Damian Brdej Author

Windows 10 is great system too, especially for Microsoft technologies like TypeScript and C#