How To Install node-run-async on Ubuntu 18.04

In this tutorial we learn how to install node-run-async on Ubuntu 18.04. node-run-async is Run function synchronously or asynchronously

Introduction

In this tutorial we learn how to install node-run-async on Ubuntu 18.04.

What is node-run-async

node-run-async is:

Node.js module to run a function either synchronously or asynchronously using a series of common patterns. This is useful for library author accepting sync or async functions as parameter. runAsync will always run them as an async method, and normalize the multiple signature.

Node.js is an event-based server-side JavaScript engine.

There are three methods to install node-run-async on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install node-run-async Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install node-run-async using apt-get by running the following command:

sudo apt-get -y install node-run-async

Install node-run-async Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install node-run-async using apt by running the following command:

sudo apt -y install node-run-async

Install node-run-async Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install node-run-async using aptitude by running the following command:

sudo aptitude -y install node-run-async

How To Uninstall node-run-async on Ubuntu 18.04

To uninstall only the node-run-async package we can use the following command:

sudo apt-get remove node-run-async

Uninstall node-run-async And Its Dependencies

To uninstall node-run-async and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove node-run-async

Remove node-run-async Configurations and Data

To remove node-run-async configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge node-run-async

Remove node-run-async configuration, data, and all of its dependencies

We can use the following command to remove node-run-async configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge node-run-async

References

Summary

In this tutorial we learn how to install node-run-async package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.