blade command not found

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

Introduction

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

blade: command not found

or when using sudo you get the following error message

sudo: blade: command not found

Solutions to blade: command not found

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

In Ubuntu blade is provided by ruby-blade package.

ruby-blade is:

Blade is a Sprockets toolkit for building and testing JS libraries. Sprockets is a Ruby library for compiling and serving web assets.

To begin with, you may add Blade to your Gemfile and then create a .blade.yml (or blade.yml) file in your project’s root, and define your Sprockets load paths and logical paths.

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

sudo apt-get -y install ruby-blade

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

You can also use apt command to install ruby-blade.

sudo apt -y install ruby-blade

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

sudo aptitude install ruby-blade

Summary

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