#Private git repo as NPM dependency

3 messages · Page 1 of 1 (latest)

hasty bramble
#

One of my dependencies in package.json looks like this:

    . . .
    "slash-commando": "github:IacovlevMaxim/SlashCommando#typescript"
  }```
This Git repository is private, however I added the Railway application there with all permissions. When I try to build, it gives the following error:
```#11 3.420 npm ERR! An unknown git error occurred
#11 3.420 npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/IacovlevMaxim/SlashCommando.git
#11 3.420 npm ERR! Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
#11 3.420 npm ERR! [email protected]: Permission denied (publickey).
#11 3.420 npm ERR! fatal: Could not read from remote repository.
#11 3.420 npm ERR!
#11 3.420 npm ERR! Please make sure you have the correct access rights
#11 3.420 npm ERR! and the repository exists.```
Maybe i have to add a railway.json file and login through git commands there?
hearty glenBOT
#

Project ID: ae509f04-9b13-4614-9753-3eeb09f971c2

hasty bramble
#

ae509f04-9b13-4614-9753-3eeb09f971c2