Install an npm package directly from github

Today I needed to install a package directly from npm because I’ve had to make some fixes in a third party library. So to be abble to test and use before the external library was updated on npm registry I’ve found a way to install it using npm. You can use the following command to install from git using the SSH protocol:

npm i git+ssh:// -S

or with HTTPS:

npm i git+ -S