cake.coffeescript command not found

In this troubleshooting guide we learn how to fix cake.coffeescript command not found error message

Introduction

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

cake.coffeescript: command not found

or when using sudo you get the following error message

sudo: cake.coffeescript: command not found

Solutions to cake.coffeescript: command not found

How To Fix cake.coffeescript: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cake.coffeescript is provided by coffeescript package.

coffeescript is:

CoffeeScript is a little language that compiles into JavaScript. Underneath all of those embarrassing braces and semicolons, JavaScript has always had a gorgeous object model at its heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.

The golden rule of CoffeeScript is: “It’s just JavaScript”. The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript implementation, and tends to run as fast or faster than the equivalent handwritten JavaScript.

The “cake” executable is provided as “cake.coffeescript” to peacefully coexist with cakephp.

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

sudo apt-get -y install coffeescript

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

You can also use apt command to install coffeescript.

sudo apt -y install coffeescript

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

sudo aptitude install coffeescript

Summary

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