tsc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tsc: command not found
or when using sudo you get the following error message
sudo: tsc: command not found
Solutions to tsc: command not found
How To Fix tsc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tsc is provided by node-typescript package.
node-typescript is:
TypeScript is a language for application-scale JavaScript. It adds optional types, classes, and modules to JavaScript, supports tools for large-scale JavaScript applications for any browser, for any host, on any OS and compiles to readable, standards-based JavaScript.
Node.js is an event-based server-side JavaScript engine.
To fix this problem, we can install more using the command below.
sudo apt-get -y install node-typescript
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-typescript.
sudo apt -y install node-typescript
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-typescript
Summary
In this tutorial we learn how to fix tsc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.