For me the solution was as simple as executing this on the git bash:
export GIT_SSH_COMMAND='ssh'
My npm probably was using some other installed ssh program from somewhere on my pc and that one wasn't using the right credentials.
For me the solution was as simple as executing this on the git bash:
export GIT_SSH_COMMAND='ssh'
My npm probably was using some other installed ssh program from somewhere on my pc and that one wasn't using the right credentials.