Skip to content

Instantly share code, notes, and snippets.

@iforwms
Created December 20, 2019 09:48
Show Gist options
  • Select an option

  • Save iforwms/03a22cc0ac1092656b3f748fadaf19c4 to your computer and use it in GitHub Desktop.

Select an option

Save iforwms/03a22cc0ac1092656b3f748fadaf19c4 to your computer and use it in GitHub Desktop.

Revisions

  1. iforwms created this gist Dec 20, 2019.
    14 changes: 14 additions & 0 deletions npm-repos.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # 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