Search code examples
androidcordovacordova-pluginsplugman

Not able to install plugin through Plugman in Phonegap


I am not able to install a plugin through Plugman in Cordova.

I check following links but did not work for me :

Below are the steps that I performed :

  • Installing Plugman through npm install -g plugman : Success
  • Creating a Cordova Project : Success
  • Adding a Plugin from here : Plugman to manage plugins : Failure

Below is the command that I performed :

D:\PhoneGap\hello>

plugman install --platform android --project D:\PhoneGap\hello
 --plugin https://github.com/imhotep/MapKit

Fetching plugin "https://github.com/imhotep/MapKit" via git clone

Error : Command failed: fatal: could not create work tree dir 'C:\Users\UserName\App Data\Local\Temp\plugman\git\1399618229721'.: No such file or directory

Thanks.


Solution

  • Finally, I was able to install plugin through Plugman.

    Below are my steps :

    • Created the directory manually : mkdir C:\Users\UserName\AppData\Local\Temp\plugman\git

    • Then fired the command : git clone https://github.com/imhotep/MapKit

      There is a bug in git source dependencies on Windows : https://github.com/sbt/sbt/issues/895

    Hope this helps.