我想在github中使用存儲庫安裝一個包到我的流星項目。
的唯一途徑流星讓我安裝它使用的是「壓縮包」特定鏈接是這樣的: https://github.com/Wizcorp/phonegap-facebook-plugin/tarball/d8b0f6935a7c6e586188bf85f9da88a1c160790b使用github tarball鏈接安裝Cordova插件到流星項目
雖然在鏈接引用的包版本是不是我需要(我得到的鏈接從一箇舊的支持職位)。
有人能解釋我如何從這個版本庫和版本(0.12.0)獲取這種類型的鏈接(tarball)嗎? https://github.com/Wizcorp/phonegap-facebook-plugin/releases/tag/v0.12.0
到目前爲止,我曾嘗試:
拷貝正確版本並運行tar.gz的下載鏈接:使用版本號安裝它
meteor add cordova:[email protected]://github.com/aogilvie/phonegap-facebook-plugin/archive/0.6.0.tar.gz
Result: "Meteor requires either an exact version, a Git URL with a SHA reference"
:
meteor add cordova:[email protected]
Result: I got "Package installed" but when
run ios-device
I got the error: "Failed to fetch plugin [email protected] via registry".下載壓縮文件,解壓並放入包文件夾中的文件夾。
Result: Is not working because is not a package.js inside the folder.
在此先感謝
謝謝你的功能和解釋良好的答案@ghybs,它現在工作!找到提交散列的方法是到達github包的URL,然後查看發佈>提交ID(如下所示:-o- c0f8da9)>,並在右上角找到提交SHA哈希。就像我嘗試使用一些密鑰(如提交ID)自己生成SHA哈希的練習一樣,但我找不到合適的密鑰來獲取它。 – Ruben