How to install GIT by NPM Packages?
What is NPM?
Note: npm does not verify or vet packages uploaded to its repository, therefore, one must carefully select only well-maintained, updated and popular packages, to prevent inadvertent security risks.
A Windows PC with a valid installation of npm
Procedure to Install git by npm
Step 1: Open Powershell as an Administrator.
Step 2: Verify if npm is installed. To do this, type the following command in the Powershell Terminal.
If the output displayed on the console is of the following type:
Then npm is not installed in your system. Follow this tutorial to install npm.
Step 3: Type the following command in the Powershell Terminal.
npm install git
Step 4: To verify if git is installed, check the packages installed under npm by typing the following command in the Powershell Terminal.
If git is present in the list, then the installation was successful.