inflate-js command not found

In this troubleshooting guide we learn how to fix inflate-js command not found error message

Introduction

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

inflate-js: command not found

or when using sudo you get the following error message

sudo: inflate-js: command not found

Solutions to inflate-js: command not found

How To Fix inflate-js: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu inflate-js is provided by node-deflate-js package.

node-deflate-js is:

This module does deflate compression/decompression in the browser and node.

This module is not meant to be run on node for any production code. The native version of deflate should be used instead because it is much faster. The main reason for this being node-compatible is for testing purposes.

Currently deflate does not pass all tests, but inflate does. This should not be used for compressing data yet in production.

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-deflate-js

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

You can also use apt command to install node-deflate-js.

sudo apt -y install node-deflate-js

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

sudo aptitude install node-deflate-js

Summary

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