Skip to content

Instantly share code, notes, and snippets.

@1Caxz
Created May 15, 2020 10:48
Show Gist options
  • Save 1Caxz/a7df1f5fd11988f9345645378ed9d585 to your computer and use it in GitHub Desktop.
Save 1Caxz/a7df1f5fd11988f9345645378ed9d585 to your computer and use it in GitHub Desktop.

Revisions

  1. 1Caxz created this gist May 15, 2020.
    14 changes: 14 additions & 0 deletions npm-install-from-git.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/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