Last active
September 15, 2019 05:34
-
-
Save hrdtbs/d4e33382033175c14071bea389d25a6b to your computer and use it in GitHub Desktop.
Githubレポジトリをnpmでpackageとしてインストールする方法。Install repositories as npm package from github repository
This file contains 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
# 構文 | |
npm install github:[user|organization]/[repository]#[branch|tag|commit] | |
# 例文 | |
npm install github:hrdtbs/hello-world#build | |
## *私が試した限りではbranch、tag、commitはorでした。要確認。 | |
# セマンティックバージョニング | |
npm install github:[user|organization]/[repository]#semver:^X.Y.Z | |
# yarnでも出来るよ | |
yarn add github:[user|organization]/[repository]#[branch|tag|commit] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment