ts-node-transpile-only command not found

In this troubleshooting guide we learn how to fix ts-node-transpile-only command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ts-node-transpile-only: command not found

or when using sudo you get the following error message

sudo: ts-node-transpile-only: command not found

Solutions to ts-node-transpile-only: command not found

How To Fix ts-node-transpile-only: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ts-node-transpile-only is provided by ts-node package.

ts-node is:

Provides a command-line interface to execute TypeScript code as a shell and an interactive read-eval-print-loop (REPL).

To fix this problem, we can install more using the command below.

sudo apt-get -y install ts-node

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ts-node.

sudo apt -y install ts-node

Or if you have aptitude installed you can use the following command.

sudo aptitude install ts-node

Summary

In this tutorial we learn how to fix ts-node-transpile-only command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.