Created
June 7, 2019 12:58
-
-
Save talamaska/846dba88bc20357ff9baae2f6b2aadef to your computer and use it in GitHub Desktop.
npm install from repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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