npm install github:user/repo#branchname

Category: Node.js & npm/yarn

npm install github:user/repo#branchname

Install from a specific branch of a GitHub repository

Installs from a specific branch of a GitHub repo — handy when you need unreleased code from a feature branch.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.