How To Install node-npmrc on Kali Linux
Introduction
In this tutorial we learn how to install node-npmrc on Kali Linux.
What is node-npmrc
node-npmrc is:
If you use a private npm registry, you know the pain of switching between a bunch of different .npmrc files and manually managing symlinks. Let that be a problem no more! npmrc is here to save the day, by making it dead simple to switch out your .npmrc with a specific named version. It also tries to protect you from your own stupid self by making sure you don’t accidentally overwrite an .npmrc that you actually want to keep.
There are three methods to install node-npmrc on Kali Linux. 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-npmrc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install node-npmrc using apt-get by running the following command:
sudo apt-get -y install node-npmrcInstall node-npmrc Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install node-npmrc using apt by running the following command:
sudo apt -y install node-npmrcInstall node-npmrc Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install node-npmrc using aptitude by running the following command:
sudo aptitude -y install node-npmrcHow To Uninstall node-npmrc on Kali Linux
To uninstall only the node-npmrc package we can use the following command:
sudo apt-get remove node-npmrcUninstall node-npmrc And Its Dependencies
To uninstall node-npmrc and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove node-npmrcRemove node-npmrc Configurations and Data
To remove node-npmrc configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge node-npmrcRemove node-npmrc configuration, data, and all of its dependencies
We can use the following command to remove node-npmrc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-npmrcDependencies
node-npmrc have the following dependencies:
References
Summary
In this tutorial we learn how to install node-npmrc package on Kali Linux using different package management tools: apt, apt-get and aptitude.