premailer command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
premailer: command not found
or when using sudo you get the following error message
sudo: premailer: command not found
Solutions to premailer: command not found
How To Fix premailer: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu premailer is provided by ruby-premailer package.
ruby-premailer is:
This package provides the premailer gem, which helps to improve the rendering of HTML emails by making CSS inline, converting links and warning about unsupported code.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-premailer
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-premailer.
sudo apt -y install ruby-premailer
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-premailer
Summary
In this tutorial we learn how to fix premailer command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.