esbuild command not found

In this troubleshooting guide we learn how to fix esbuild command not found error message

Introduction

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

esbuild: command not found

or when using sudo you get the following error message

sudo: esbuild: command not found

Solutions to esbuild: command not found

How To Fix esbuild: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu esbuild is provided by esbuild package.

esbuild is:

esbuild is a JavaScript bundler and minifier. It packages up JavaScript and TypeScript code for distribution on the web.

Why build another JavaScript build tool? The current build tools for the web are at least an order of magnitude slower than they should be. It is hoped that this project serves as an “existence proof” that JavaScript tooling can be much, much faster.

This package contains the esbuild binary.

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

sudo apt-get -y install esbuild

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

You can also use apt command to install esbuild.

sudo apt -y install esbuild

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

sudo aptitude install esbuild

Summary

In this tutorial we learn how to fix esbuild command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.