How To Install node-nth-check on Ubuntu 18.04

In this tutorial we learn how to install node-nth-check on Ubuntu 18.04. node-nth-check is performant nth-check parser & compiler

Introduction

In this tutorial we learn how to install node-nth-check on Ubuntu 18.04.

What is node-nth-check

node-nth-check is:

This module can be used to parse & compile nth-checks, as they are found in CSS 3’s nth-child() and nth-last-of-type().

nth-check focusses on speed, providing optimized functions for different kinds of nth-child formulas, while still following the spec.

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

There are three methods to install node-nth-check 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-nth-check 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-nth-check using apt-get by running the following command:

sudo apt-get -y install node-nth-check

Install node-nth-check Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install node-nth-check

Install node-nth-check 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-nth-check using aptitude by running the following command:

sudo aptitude -y install node-nth-check

How To Uninstall node-nth-check on Ubuntu 18.04

To uninstall only the node-nth-check package we can use the following command:

sudo apt-get remove node-nth-check

Uninstall node-nth-check And Its Dependencies

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

sudo apt-get -y autoremove node-nth-check

Remove node-nth-check Configurations and Data

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

sudo apt-get -y purge node-nth-check

Remove node-nth-check configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge node-nth-check

References

Summary

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