Signing back into the Community for the first time? You'll need to reset your password to access your account.  Find out more.

Forum Discussion

seanlh's avatar
seanlh
New Contributor
7 months ago

npm install: Permission denied (publickey)

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

No RepliesBe the first to reply