wrong git path with cygwin mintty via npm

0

I use cygwin with mintty on my windows 10 computer. I have git installed via cygwin. This is the error I get:

$ cordova plugin add https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git

You have been opted out of telemetry. To change this, run: cordova telemetry on.
Failed to fetch plugin https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code 1
npm ERR! Command failed: C:\cygwin64\bin\git.EXE clone --mirror -q https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git C:\Users\egune\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-51f64ba3\.git --config core.longpaths=true
npm ERR! /cygdrive/c/Users/egune/AppData/Roaming/npm-cache/_cacache/tmp/git-clone-51f64ba3/C:\Users\egune\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-51f64ba3\.git: No such file or directory
npm ERR!

facebook

Posted 2019-04-23T19:06:37.297

Reputation: 159

You are mixing Windows and Unix path formats. See cygpath for how to convert between them. – DavidPostill – 2019-04-23T20:05:19.187

No answers