js91 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
js91: command not found
or when using sudo you get the following error message
sudo: js91: command not found
Solutions to js91: command not found
How To Fix js91: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu js91 is provided by libmozjs-91-dev package.
libmozjs-91-dev is:
SpiderMonkey is the code-name for Mozilla Firefox’s C++ implementation of JavaScript. It is intended to be embedded in other applications that provide host environments for JavaScript.
This package contains the header files which are needed for developing SpiderMonkey embedders.
This library is intended for use in contexts where only trusted JavaScript code will be run, such as GNOME’s gjs, Cinnamon’s cjs, and polkit’s rules parsing. It should not be used to run untrusted JavaScript from web pages: use a security-supported implementation such as Firefox, Chrome or WebKitGTK’s JavaScriptCore instead.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmozjs-91-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmozjs-91-dev.
sudo apt -y install libmozjs-91-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmozjs-91-dev
Summary
In this tutorial we learn how to fix js91 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.