N
N
Nikolai Gromov2015-08-31 01:06:25
git
Nikolai Gromov, 2015-08-31 01:06:25

Why can there be bugs with Git in cygwin?

Strange thing: I install dependencies for the project (I call npm i), I see a bunch of errors in Cygwin with a message about cloning problems and completely insane paths. I do the same in Gitbash - everything works fine.
I use Cygwin and Gitbash from cmder
by calling git --version I see for Cygwin: git version 2.4.5, for Gitbash: git version
1.9.5.msysgit.1 , actually) worked correctly in Cygwin?
An example of an error log issued by Cygwin:

$ npm i
npm ERR! git clone C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db: Клонирование в «C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db»…
npm ERR! git clone C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db: fatal: '/cygdrive/c/Users/nicot/AppData/Roaming/npm-cache/_git-remotes/git-github-com-gulpjs-gulp-git-3014dfdc/C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc' does not appear to be a git repository
npm ERR! git clone C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db: fatal: Could not read from remote repository.
npm ERR! git clone C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db:
npm ERR! git clone C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db: Please make sure you have the correct access rights
npm ERR! git clone C:\Users\nicot\AppData\Roaming\npm-cache\_git-remotes\git-github-com-gulpjs-gulp-git-3014dfdc C:\cygwin64\tmp\npm-8492-6dd0f203\git-cache-6c4c4128b9c7\bbe3c56138a9ede627879d7e47daffd0a6d9b6db: and the repository exists.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Chistyakov, 2015-08-31
@alexclear

Cygwin does not use Windows-style absolute paths with drive.
He will not understand what C:\Users\... is.
Instead, you need to write /cygdrive/c/Users/....
What he tried to tell you about in the second error message in a veiled form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question