How To Install node-async-stacktrace on Ubuntu 20.04
Introduction
In this tutorial we learn how to install node-async-stacktrace
on Ubuntu 20.04.
What is node-async-stacktrace
node-async-stacktrace is:
The “Async Stacktrace” module eases debugging of Node.js applications. With the default stacktraces, the problem is that they do not tell you exactly where a problematic subroutine has been called from.
The “Async Stacktrace” module shows you where an error was caught and passed to the next callback. This allows you to see from where problematic code was called.
There are three methods to install node-async-stacktrace
on Ubuntu 20.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-async-stacktrace 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-async-stacktrace
using apt-get
by running the following command:
sudo apt-get -y install node-async-stacktrace
Install node-async-stacktrace Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install node-async-stacktrace
using apt
by running the following command:
sudo apt -y install node-async-stacktrace
Install node-async-stacktrace 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-async-stacktrace
using aptitude
by running the following command:
sudo aptitude -y install node-async-stacktrace
How To Uninstall node-async-stacktrace on Ubuntu 20.04
To uninstall only the node-async-stacktrace
package we can use the following command:
sudo apt-get remove node-async-stacktrace
Uninstall node-async-stacktrace And Its Dependencies
To uninstall node-async-stacktrace
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove node-async-stacktrace
Remove node-async-stacktrace Configurations and Data
To remove node-async-stacktrace
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge node-async-stacktrace
Remove node-async-stacktrace configuration, data, and all of its dependencies
We can use the following command to remove node-async-stacktrace
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-async-stacktrace
References
Summary
In this tutorial we learn how to install node-async-stacktrace
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.