authentication - NPM install git repo fails because it uses my mac username instead of 'git' -


i'm trying install private repo, i'm running:

npm git+ssh://git.remoterepo.net/somerepo.git 

i have ssh key @ ~/.ssh/id_rsa has no passphrase , it's configured @ remote git repo (gitlab).

however each time prompts me:

[mac_user]@git.remoterepo.net's password:

it should using git@git.remoterepo.net (git username). if ssh git username can log in:

ssh git@git.remoterepo.net

but if ssh [mac_user]@git.remoterepo.net prompts me password , can't. i've tried npm git@git+ssh://git.remoterepo.net/somerepo.git still uses wrong username..

how can make npm install use git username instead of mac login one?

i've tried https no luck (hangs or gives 401 unauthorized).

thanks!

try using npm git+ssh://git@git.remoterepo.net/somerepo.git. search git@ in https://docs.npmjs.com/cli/install


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -