Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu - Install Typescript

For now I just know of the one main way to install Typescript, but as and when I find out more ways, such as a PPA, I'll post them here.


Ubuntu 16.04 and 18.04 - Native Packages

sudo apt update && sudo apt install node-typescript -y

Using Node

RUN npm install -g typescript

Specific Version

If you need to install a specific version, you can do something like:

RUN npm install -g typescript@2.9.2