[BUG] Permission denied when installing a git+ssh:// dependency with key loaded by ssh-agent #3261
Open
1 task done
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
The npm install fails on a git+ssh:// dependency with a ssh-key loaded in ssh-agent on Windows 10 since npm 7.10.0.
Expected Behavior
The dependency should be installed correctly.
Steps To Reproduce
Start ssh-agent and add private key (using Win32-OpenSSH 8.1.0-beta installed with chocolatey)
Install npm dependency from git+ssh:// url will fail
Note that If I run the failed git command in my terminal it works fine
The bug appeared since npm 7.10.0 and still fails on 7.13.0. It works fine on 7.9.0 and previous version, and fine also on npm 6.14.
If I unload my key from ssh-agent, and put my key in a .ssh\id_rsa the the npm install works fine.
Environment
The text was updated successfully, but these errors were encountered: