Skip to content

Instantly share code, notes, and snippets.

@howardpanton
Created October 20, 2019 20:58
Show Gist options
  • Save howardpanton/63d17a346fad91732d59548a1c51d85c to your computer and use it in GitHub Desktop.
Save howardpanton/63d17a346fad91732d59548a1c51d85c to your computer and use it in GitHub Desktop.
NPM install from Github
# Get the latest from GitHub, public repo:
$ npm install username/my-new-project --save-dev
# GitHub, private repo:
$ npm install git+https://token:[email protected]/username/my-new-project.git#master
$ npm install git+ssh://[email protected]/username/my-new-project.git#master
# … or from Bitbucket, public repo:
$ npm install git+ssh://[email protected]/username/my-new-project.git#master --save-dev
# Bitbucket, private repo:
$ npm install git+https://username:[email protected]/username/my-new-project.git#master
$ npm install git+ssh://[email protected]/username/my-new-project.git#master
# … or, if you published as npm package:
$ npm install my-new-project --save-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment