Can't install Cordova plugins from Git on CLI

前端 未结 4 856
面向向阳花
面向向阳花 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:43

    On my machine the issue was, that git wasn't available in the cmd in windows. Open cmd and type "git" and press enter. If there is shown, that the command is not available, then you might have the same issue.

    Solution:

    Find out where your git.exe is located. For me it was a custom path in "D:\Program Files\Git\bin". Then search in windows for "environment variables" and open the link to the shown windows settings.

    Find the entry "Path" and click on "edit". Add the path to the git.exe file (without "git.exe"). Restart cmd and type "git".

    If that was the only issue the installation of cordova plugins over git should work.

提交回复
热议问题