minify command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
minify: command not found
or when using sudo you get the following error message
sudo: minify: command not found
Solutions to minify: command not found
How To Fix minify: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu minify is provided by minify package.
minify is:
/usr/bin/minify is a CLI implementation of the github.com/tdewolff/minify Go library package.
It provides HTML5, CSS3, JS, JSON, SVG and XML minifiers.
Minification is the process of removing bytes from a file (such as whitespace) without changing its output and therefore shrinking its size and speeding up transmission over the Internet and possibly parsing. The implemented minifiers are high performance and streaming, which implies O(n).
To fix this problem, we can install more using the command below.
sudo apt-get -y install minify
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install minify.
sudo apt -y install minify
Or if you have aptitude installed you can use the following command.
sudo aptitude install minify
Summary
In this tutorial we learn how to fix minify command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.