semver command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
semver: command not found
or when using sudo you get the following error message
sudo: semver: command not found
Solutions to semver: command not found
How To Fix semver: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu semver is provided by node-semver package.
node-semver is:
Test if version(s) satisfy the supplied range(s), and sort them. Multiple versions or ranges may be supplied. Program exits successfully if any valid version satisfies all supplied ranges, and prints all satisfying versions.
This package provides the semver
executable and the Node.js module.
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-semver
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-semver.
sudo apt -y install node-semver
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-semver
Summary
In this tutorial we learn how to fix semver command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.