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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -