如何安装 cordova 插件的特定提交。我想安装这个 screen orientation 插件分支,请参阅 https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/101/commits/99ea202e9b1121fc297ef3bbf0072efa1e6b0335 . 但我无法安装。这可能吗?或者我应该调用哪个命令来安装这个分支?
我尝试了不同的方法,但没有成功。
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation:fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation@fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation#fix-ios-rotate-on-lock
ionic plugin add https://github.com/gbenvenuti/cordova-plugin-screen-orientation:99ea202e9b1121fc297ef3bbf0072efa1e6b0335
我找不到正确的命令。
最佳答案
我知道一个解决方法,可能不是最好的解决方案,但我将解释:
复制提交代码:99ea202e9b1121fc297ef3bbf0072efa1e6b0335
转到主页,复制“下载 ZIP”按钮的 URL
https://github.com/gbenvenuti/cordova-plugin-screen-orientation/archive/master.zip
为您的提交代码更改“master”
粘贴到导航器中,然后下载。
替换您的插件文件夹,用于下载。
删除平台,然后重新添加。
关于cordova - 如何安装 cordova 插件的特定提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37119583/