npm-git-install

Installation
Summary

Install npm packages directly from GitHub repositories using git URLs.

  • Supports HTTPS and SSH methods for public and private repositories, with authentication via SSH keys or personal access tokens
  • Install from specific branches, tags, commits, or the default branch by appending #<ref> to the git URL
  • Automatically runs the prepare script during installation, enabling TypeScript compilation and builds for packages not yet published to npm
  • Add git URLs directly to package.json dependencies using full git URLs or GitHub shorthand syntax (github:owner/repo#branch)
SKILL.md

npm install Git Repository Guide

Covers how to install npm packages directly from GitHub repositories. Useful for installing packages not in the npm registry, specific branches, or private repositories.

When to use this skill

  • Packages Not on npm: Install packages not yet published
  • Specific Branch/Tag: Install main, develop, specific release tags
  • Private Repositories: Install packages within an organization
  • Forked Packages: Use a modified fork version
  • Test Latest Commits: Test the latest code before a release

1. Installation Commands

Basic Syntax

Related skills

More from supercent-io/skills-template

Installs
10.4K
GitHub Stars
88
First Seen
Jan 24, 2026