-
Notifications
You must be signed in to change notification settings - Fork 3k
Installing npm module for git+https URL errors out #7083
Comments
Thanks for the bug report and candidate fix! /cc @othiym23 Windows + git problem |
Awesome! Glad this is known. I had same problem, with git+ssh, npm 2.1.16 |
Good catch. I'll see if I can get this into today's release (along with a more consistent way of naming tmp directories -- 0.138124314 or whatever in tmp directory names works but looks pretty strange). |
Is this fixed in 2.2? |
It doesn't appear to be fixed anywhere yet? I tried 2.2.0 and 2.1.18. |
I believe this did not make it into 2.2.0, but 2.2.1 is scheduled to be out today and may contain it. |
Yeah, sorry, it slipped between the cracks in last week's release, which is my fault. Sorry! I'll try to get in in there for today's release. It should be a simple enough fix. |
I have a candidate fix for this, which I'll go ahead and merge, but I have a problem: I can't get this bug to reproduce, with or without the patch! What versions of Git and Windows are those of you with this problem running? |
I'm on Windows 7 with git version 1.8.5.2.msysgit.0. For what it's worth, the fix in the original bug report solved the issue for me. |
OK, I'm running Git 1.9.something and Windows 8.1, so maybe that accounts for it. I've landed cc2e099, which includes a better algorithm for naming the temporary directory as well as ensuring the path exists before running Git on it, so it should also fix the problem. I'll need all of you to verify that |
Run |
I'll check it out in a few hours and report back! |
Working now on my end! 👍 Thanks! |
Great! |
NPM Version: 2.1.17
npm install using the command line of the form
fails with
Tracking the issue, it seems to happen from
add-remote-git.js
cache
method.It is using directory pointed in tmp without first creating it.
Adding the line
mkdir(tmp);
after these two lines seems to fix the issueThe text was updated successfully, but these errors were encountered: