spring command not found

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

Introduction

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

spring: command not found

or when using sudo you get the following error message

sudo: spring: command not found

Solutions to spring: command not found

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

In Ubuntu spring is provided by ruby-spring package.

ruby-spring is:

Spring is a Rails application preloader. It speeds up development by keeping your application running in the background so you don’t need to boot it every time you run a test, rake task or migration.

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

sudo apt-get -y install ruby-spring

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

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

sudo apt -y install ruby-spring

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

sudo aptitude install ruby-spring

Summary

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