Install NPM Packages from GitHub Directly

Published on August 20, 2020 19 sec read

Today I’m going to share how to install npm packages from GitHub repository.

Installing Package

Visit your npm package repository and copy the https URL of the repo. Then run like this to install the package:

npm install

We can also set a specific version number like this:

npm install

After installing the package, it’ll add the following dependency to package.json file.

"dependencies": {
  "express": "git+"
That’s it. Thanks for reading. 🙂

Monthly Newsletter

One email a month, packed with the latest tutorials, delivered straight to your inbox.
We'll never send any spam or promotional emails.

Hey, I'm Md Obydullah. I build open-source projects and write article on Laravel, Linux server, modern JavaScript and more on web development.