Whenever I try to install using npm install
from a package that is loaded on a git repository (on windows) it fails:
2494 error An unknown git error occurred
2495 error command git --no-replace-objects ls-remote ssh://git@<SIT>/P_0001_PI/config-loader.git
2496 error <SITE>: Permission denied (publickey).
2496 error fatal: Could not read from remote repository.
2496 error
2496 error Please make sure you have the correct access rights
2496 error and the repository exists.
2497 verbose exit 128
However I already added an ssh key using ssh-keygen
as well as make the openssh authenticator service run automatic. (and add the key to the keychain).
Originally git itself also gave the problem, however this was solved by adding GIT_SSH
environment variable to the user environment variables (with as value to location of window's openssh executable).
whenever I run the command
git --no-replace-objects ls-remote ssh://git@/P_0001_PI/config-loader.git
From command line directly it works (without asking for the passphrase, as expected). However when running npm install
the above error pops up.