2014-01-10 50 views
1

當我建立我的PhoneGap應用這個插件的最新版本不起作用:安裝特定插件版本的PhoneGap

https://github.com/katzer/cordova-plugin-local-notifications

所以我想回去0.6.3版本,這我知道工作原理:

https://github.com/katzer/cordova-plugin-local-notifications/tree/v0.6.3

然而,當我運行:

phonegap local plugin add https://github.com/katzer/cordova-plugin-local-notifications/tree/v0.6.3 

我得到:

[phonegap] adding the plugin: https://github.com/katzer/cordova-plugin-local-notifications/tree/dc894c1eeede69b935f19891fda8e45a6c4e8f2f 
[error] Fetching plugin failed: Error: Command failed: fatal: https://github.com/katzer/cordova-plugin-local-notifications/tree/dc894c1eeede69b935f19891fda8e45a6c4e8f2f/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server? 

回答

3

只要保持.git url然後concat #VERSION。

你的情況:

phonegap local plugin add https://github.com/katzer/cordova-plugin-local-notifications.git#v0.6.3

+0

不爲我工作 – andrewb

0

你可以只下載所需的版本到本地文件夾,然後使用本地文件夾的路徑在您的通話phonegap local plugin add