Last Updated: February 25, 2016
·
752
· Christoffer Niska

How to install projects from GitHub using NPM

Have you ever wondered how to install projects from GitHub using NPM that are not registered with NPM?

The problem is that NPM only supports installing packages from tarballs and GitHub only provides downloading projects as zip files. Luckily GitHub still offers the tarballs if you know the URL.

Open your shell and run the following command (replace the author, project and the tag name with the correct details):

npm install http://github.com.com/author/project/tarball/tagname

This will install the project from GitHub using NPM just like any other NPM module.