Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Rob_Welan
New Contributor I
46 Views

installing screen-orientation from GitHub

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?

Tags (2)
0 Kudos
2 Replies
PaulF_IntelCorp
Employee
46 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

 

Rob_Welan
New Contributor I
46 Views

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

Reply