Software Archive
Read-only legacy content
17061 Discussions

installing screen-orientation from GitHub

Rob_Welan
New Contributor I
375 Views

I am using Build 3088 of Intel XDK. I am trying to install this plugin -> https://github.com/gbenvenuti/cordova-plugin-screen-orientation.git.

This worked fine in Build 2893. But now I get this Error:

Command failed: /Applications/Intel XDK.app/Contents/MacOS/git/bin/git --exec-path=/Applications/Intel XDK.app/Contents/MacOS/git/libexec/git-core -c init.templatedir=/Applications/Intel XDK.app/Contents/MacOS/git/share/git-core/templates clone https://github.com/gbenvenuti/cordova-plugin-screen-orientation.git /var/folders/vn/s5z45l5x0d3dmrg5dj0k71xh0000gn/T/git/1458795946943 --single-branch --depth=1 Cloning into '/var/folders/vn/s5z45l5x0d3dmrg5dj0k71xh0000gn/T/git/1458795946943'... error: Could not expand include path '~/.gitcinclude' fatal: bad config file line 49 in /usr/local/git/etc/gitconfig

I would like to get this from NPM (here), but, when I ask for v1.4.1, Intel XDK insists on installing v1.4.0. I try installing:

  Third-party plugin \ cordova plugin registry \ plugin id = cordova-plugin-screen-orientation version = 1.4.1. No luck, 1.4.0 installs instead.

I have selected Cordova CLI version 5.4.1.

Help! How to solve?

0 Kudos
2 Replies
PaulF_IntelCorp
Employee
375 Views

That plugin is available from NPM under this name: cordova-plugin-screen-orientation and, unfortunately, the version number inside the plugin.xml file was not updated to say 1.4.1 (see https://github.com/gbenvenuti/cordova-plugin-screen-orientation/blob/master/plugin.xml#L5), even though that is what it says on NPM (bad updates by the plugin author). Thus, once you install it, the XDK will report 1.4.0 because that's what the plugin.xml file says...

To include this from NPM, do the following:

Screen Shot 2016-03-24 at 11.14.33 AM.png

 

0 Kudos
Rob_Welan
New Contributor I
375 Views

oh crap, i didn't think to check the plugin author's xml...

0 Kudos
Reply