How To Install node-request on Ubuntu 18.04

In this tutorial we learn how to install node-request on Ubuntu 18.04. node-request is simplified HTTP request client module for Node.js

Introduction

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

What is node-request

node-request is:

node-request is an HTTP client with a simple API and a lot of features:

  • streaming response
  • multipart form upload
  • HTTP auth
  • OAuth signing
  • Proxy Some features are available as suggested Node.js modules.

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

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

sudo apt-get -y install node-request

Install node-request Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install node-request

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

sudo aptitude -y install node-request

How To Uninstall node-request on Ubuntu 18.04

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

sudo apt-get remove node-request

Uninstall node-request And Its Dependencies

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

sudo apt-get -y autoremove node-request

Remove node-request Configurations and Data

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

sudo apt-get -y purge node-request

Remove node-request configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge node-request

References

Summary

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