Can't install Cordova plugins from Git on CLI

前端 未结 4 699
面向向阳花
面向向阳花 2021-02-01 14:00

I have been racking my brain on this for a while now. I am developing an Android app on Windows 7 in Cordova 3.4 and I can\'t get any of t

4条回答
  •  执笔经年
    2021-02-01 14:44

    It seems there is a bug in git source dependencies on Windows.

    Try to create the directory manually :

    mkdir C:\Users\DAVIDH~1\AppData\Local\Temp\plugman\git
    

    Then :

    git clone https://github.com/danwilson/google-analytics-plugin.git
    

    From there : https://github.com/sbt/sbt/issues/895

    EDIT

    I removed the numerical extension, which is not needed, to follow the remark from FugueWeb

    UPDATE (From Sept 2014)

    As noted in Daren Beale's answer and also in the issue linked above, this bug is fixed in Git 1.9.4. Downloading the latest version of GIT for Windows should get around this problem.

提交回复
热议问题