npm install: Permission denied (publickey)

seanlh
seanlh
Community Member
edited July 17 in SSH

Getting the following when running npm install with a dependency that points to a git repository defined in package.json:

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote git@<host>:<org>/<repo>.git
npm ERR! git@<host>: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

This is seemingly the same issues as this one: https://1password.community/discussion/143431/ssh-agent-doesnt-work-with-git-repos-installed-through-npm.


1Password Version: 1Password for Windows 8.10.36 81036046, on PRODUCTION channel
Extension Version: Not Provided
OS Version: Windows 11 Pro 23H2 22631.3880
Browser: Not Provided