他のプライベート github リポジトリを依存関係として含む npm で github プライベート リポジトリをインストールしようとしています。
いろいろな方法や投稿を試しましたが、どれも機能しません。私がやっていることは次のとおりです:
npm install git+https://github.com/myusername/mygitrepository.git
package.json では次のようになります:
"dependencies": {
"repository1name": "git+https://github.com/myusername/repository1.git",
"repository2name": "git+https://github.com/myusername/repository2.git"
}
正しいやり方は何でしょうか?
ベストアンサー1
これを試して:
"dependencies" : {
"name1" : "git://github.com/user/project.git#commit-ish",
"name2" : "git://github.com/user/project.git#commit-ish"
}
また、visionmedia/express が名前/リポジトリである場合は、以下を試すこともできます。
"dependencies" : {
"express" : "visionmedia/express"
}
または (npm パッケージ モジュールが存在する場合):
"dependencies" : {
"name": "*"
}