jsdoc command not found

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

Introduction

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

jsdoc: command not found

or when using sudo you get the following error message

sudo: jsdoc: command not found

Solutions to jsdoc: command not found

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

In Ubuntu jsdoc is provided by jsdoc-toolkit package.

jsdoc-toolkit is:

JsDoc Toolkit is an application, written in JavaScript, for automatically generating template-formatted, multi-page HTML (or XML, JSON, or any other text-based) documentation from commented JavaScript source code.

Based on the JSDoc.pm project, this was renamed “Jsdoc Toolkit” during development as it grew into more than a simple version upgrade.

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

sudo apt-get -y install jsdoc-toolkit

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

You can also use apt command to install jsdoc-toolkit.

sudo apt -y install jsdoc-toolkit

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

sudo aptitude install jsdoc-toolkit

Summary

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