js-yaml command not found

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

Introduction

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

js-yaml: command not found

or when using sudo you get the following error message

sudo: js-yaml: command not found

Solutions to js-yaml: command not found

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

In Ubuntu js-yaml is provided by node-js-yaml package.

node-js-yaml is:

This is an implementation of YAML, a human-friendly data serialization language. Started as PyYAML port, it was completely rewritten from scratch. Now it’s very fast, and supports the 1.2 spec.

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

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

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

sudo apt -y install node-js-yaml

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

sudo aptitude install node-js-yaml

Summary

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