js_beautify command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
js_beautify: command not found
or when using sudo you get the following error message
sudo: js_beautify: command not found
Solutions to js_beautify: command not found
How To Fix js_beautify: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu js_beautify is provided by libjavascript-beautifier-perl package.
libjavascript-beautifier-perl is:
JavaScript::Beautifier is a Perl module providing a simple way to beautify arbitrary JavaScript code. This beautifier can process your messy or compacted JavaScript, neatly and consistently formatting it, thus making it easier to read and maintain.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libjavascript-beautifier-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libjavascript-beautifier-perl.
sudo apt -y install libjavascript-beautifier-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libjavascript-beautifier-perl
Summary
In this tutorial we learn how to fix js_beautify command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.