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://[email protected]/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! [email protected]: 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.
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://[email protected]/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! [email protected]: 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?
3 Replies
Storm Søndergaard
Storm SøndergaardOP5mo ago
I am authenticating with a environment variable containing my github access token. Seems to be a duplicate of: https://discord.com/channels/595317990191398933/1236881594606813205 Nm.. Still getting the error after putting authtoken in plain text inside .npmrc.
z0rrn
z0rrn5mo ago
I think the problem is that youre trying to clone the repository over ssh. For the authtoken to work you need to clone it over HTTPS.
Storm Søndergaard
Storm SøndergaardOP5mo ago
Yeah. Not sure how to fix it tho (I mean, I could just use Wrangler CLI). I just followed their automatic deployment wizard.
Want results from more Discord servers?
Add your server