he command not found

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

Introduction

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

he: command not found

or when using sudo you get the following error message

sudo: he: command not found

Solutions to he: command not found

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

In Ubuntu he is provided by node-he package.

node-he is:

he (for “HTML entities”) is a robust HTML entity encoder/decoder written in JavaScript.

It supports all standardized named character references as per HTML, handles ambiguous ampersands and other edge cases just like a browser would, has an extensive test suite, and — contrary to many other JavaScript solutions — he handles astral Unicode symbols just fine.

Node.js is an event-based server-side JavaScript engine.

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

sudo apt-get -y install node-he

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

You can also use apt command to install node-he.

sudo apt -y install node-he

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

sudo aptitude install node-he

Summary

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