closure-compiler command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
closure-compiler: command not found
or when using sudo you get the following error message
sudo: closure-compiler: command not found
Solutions to closure-compiler: command not found
How To Fix closure-compiler: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu closure-compiler is provided by closure-compiler package.
closure-compiler is:
Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what’s left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google’s JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.
This package contains the /usr/bin wrapper script and manpage.
To fix this problem, we can install more using the command below.
sudo apt-get -y install closure-compiler
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install closure-compiler.
sudo apt -y install closure-compiler
Or if you have aptitude installed you can use the following command.
sudo aptitude install closure-compiler
Summary
In this tutorial we learn how to fix closure-compiler command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.