How To Install node-execa on Debian 9
child_process
Introduction
In this tutorial we learn how to install node-execa
on Debian 9.
What is node-execa
node-execa is:
This is better in the following ways:
- Promise interface.
- Strips EOF from the output so you don’t have to
stdout.trim()
. - Supports shebang binaries cross-platform.
- Improved Windows support.
- Higher max buffer. 10 MB instead of 200 KB.
- Executes locally installed binaries by name.
- Cleans up spawned processes when the parent process dies.
Node.js is an event-based server-side JavaScript engine.
There are three methods to install node-execa
on Debian 9. 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-execa 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-execa
using apt-get
by running the following command:
sudo apt-get -y install node-execa
Install node-execa Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install node-execa
using apt
by running the following command:
sudo apt -y install node-execa
Install node-execa 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install node-execa
using aptitude
by running the following command:
sudo aptitude -y install node-execa
How To Uninstall node-execa on Debian 9
To uninstall only the node-execa
package we can use the following command:
sudo apt-get remove node-execa
Uninstall node-execa And Its Dependencies
To uninstall node-execa
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove node-execa
Remove node-execa Configurations and Data
To remove node-execa
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge node-execa
Remove node-execa configuration, data, and all of its dependencies
We can use the following command to remove node-execa
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-execa
Dependencies
node-execa have the following dependencies:
References
Summary
In this tutorial we learn how to install node-execa
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.