Private dependencies from other github org

I am getting the following error:
(XXX = Private)
00:44:03.982    npm ERR! code 128
00:44:03.988    npm ERR! An unknown git error occurred
00:44:03.994    npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/XXX/XXX.git
00:44:04.001    npm ERR! Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
00:44:04.008    npm ERR! git@github.com: Permission denied (publickey).
00:44:04.014    npm ERR! fatal: Could not read from remote repository.
00:44:04.019    npm ERR! 
00:44:04.024    npm ERR! Please make sure you have the correct access rights
00:44:04.030    npm ERR! and the repository exists.

I have a working .npmrc (locally), im using sveltekit.

I have a suspicion about my npmrc only working with http, not ssh, which it seems to be using, but I am unsure if this is an issue?
Was this page helpful?