LoginSignup
2
3

More than 5 years have passed since last update.

gitのリポジトリからnpm installする

Last updated at Posted at 2016-03-09

publicリポジトリ

例:github

package.json
{
  "private": true,
  "dependencies": {
    "mylib" : "git://github.com/{organization}/{projectname}.git"
  }
}

privateリポジトリ(鍵認証)

例:bitbucket

  • デプロイ鍵を事前に登録しておく
package.json
{
  "private": true,
  "dependencies": {
    "mylib" : "git://git@bitbucket.org:{organization}/{projectname}.git"
  }
}
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3