rollup command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
rollup: command not found
or when using sudo you get the following error message
sudo: rollup: command not found
Solutions to rollup: command not found
How To Fix rollup: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu rollup is provided by rollup package.
rollup is:
Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. It uses the standardized ES module format for code, instead of previous idiosyncratic solutions such as CommonJS and AMD.
ES modules let you freely and seamlessly combine the most useful individual functions from your favorite libraries. Rollup can optimize ES modules for faster native loading in modern browsers, or output a legacy module format allowing ES module workflows today.
node-chokidar is required to use the –watch option
To fix this problem, we can install more using the command below.
sudo apt-get -y install rollup
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install rollup.
sudo apt -y install rollup
Or if you have aptitude installed you can use the following command.
sudo aptitude install rollup
Summary
In this tutorial we learn how to fix rollup command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.