Skip to content

Instantly share code, notes, and snippets.

@iforwms
Created December 20, 2019 09:48
Show Gist options
  • Save iforwms/03a22cc0ac1092656b3f748fadaf19c4 to your computer and use it in GitHub Desktop.
Save iforwms/03a22cc0ac1092656b3f748fadaf19c4 to your computer and use it in GitHub Desktop.
# Get the latest from GitHub, public repo:
$ npm install username/project-name --save-dev
# GitHub, private repo:
$ npm install git+https://token:x-oauth-basic@github.com/username/project-name.git#master
$ npm install git+ssh://git@github.com/username/project-name.git#master
# … or from Bitbucket, public repo:
$ npm install git+ssh://git@bitbucket.org/username/project-name.git#master --save-dev
# Bitbucket, private repo:
$ npm install git+https://username:password@bitbucket.org/username/project-name.git#master
$ npm install git+ssh://git@bitbucket.org/username/project-name.git#master
# … or, if you published as npm package:
$ npm install project-name --save-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment