How To Install node-request on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 383 words
Introduction
In this tutorial we learn how to install node-request on Ubuntu.
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. 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
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, 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 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
Dependencies
node-request have the following dependencies:
- nodejs
- node-aws-sign2
- node-aws4
- node-caseless
- node-combined-stream
- node-extend
- node-forever-agent
- node-form-data
- node-har-validator
- node-http-signature
- node-is-typedarray
- node-isstream
- node-json-stringify-safe
- node-mime-types
- node-oauth-sign
- node-performance-now
- node-qs
- node-safe-buffer
- node-tough-cookie
- node-tunnel-agent
- node-uuid
References
Summary
In this tutorial we learn how to install node-request package on Ubuntu using different package management tools: apt, apt-get and aptitude.