R
Railway

✋|help

NPM ssh dependancy

Wwillscottrod9/7/2023
Hi

I'm running into an issue where I'm using a private github npm dependancy and the build step is giving me back an "Unauthorized".

I can't use private tokens and so the only way I can see is by doing it through github ssh. Is there anyway to authorize a container with github ssh?

I've tried through the railway cli but it didn't seem to work.

Any help would be appreciated!
Wwillscottrod9/7/2023
6cd21bc3-1e57-4c31-b7d1-7eec426fca78
Bbrody1929/7/2023
theres no official way to ssh into a container, and especially no way to do it during build, but lets see if we can find a way around this, how would you normally authorize npm to install this private dependency
Wwillscottrod9/7/2023
In local development I've just been using git ssh authentication. The private repository is in my github that is linked to railway but npm can't access it. I've looked at just linking the private npm package inside the main repo with npm link but from what i've seen that's very messy
Sorry, should change the description to note not a direct SSH connection but adding ssh authentication for git. This is what i've been doing: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
Bbrody1929/7/2023
what is the easiest way to do this though? can you provide the username and password to your github as command flags? can you provide the username and password in the url to the private dependency? what are all the options?
Wwillscottrod9/7/2023
Usually the process requires me to generate a key on the terminal using ssh-keygen -t ed25519 -C "your_email@example.com"
Bbrody1929/7/2023
what are all the options
Wwillscottrod9/7/2023
What do you mean all the options? Inside Github? I can add the ssh key generated inside there. That's all.
Bbrody1929/7/2023
all the possible options for authorizing npm to install a private dependency
so far ive only seen one
Mmantisinabox9/7/2023
Currently no support for private npm 📦
Bbrody1929/7/2023
vin is the ssh key the only way?
Mmantisinabox9/7/2023
As far as I’m aware, yeah. Angelo has said a few times that there is no way to do it yet™️
Bbrody1929/7/2023
i see
Wwillscottrod9/7/2023
Thanks guys, hopefully in the future then. So I'll just have to bundle it in the actual repo :kekw:

Looking for more? Join the community!

Recommended Posts
How to set mailgun to Ghost(docker) + SqliteI had used Ghost with mysql, but currently I try to use a new Ghost template with Sqlite. I did not Timeout while waiting for registry?All of my deploys have been building successfully but failing to deploy for the past ~hour or so. TContainer is failing to start.Everything was working fine, I just added a few new features to the app and now it is failing to depSeeing failures in deploying saying container shut down, but cannot find the container logs.Need help figuring out how to debug this issue with deploying to prod. From my end I don't think theHow to Delete Project?How do I delete a project I created so it doesn't show up in my homepage? Railway's documentation juInitial Deployment Continues To FailHello everyone. I am trying to setup, and stuck at the starting line. All ive done is connect githubDeployments sometimes takes timeMany times deployments take more than 5 minutes, although it should take less than 1 minute.Sveltekit memory usagemy sveltekit apps are almost locked to 100mb memory, anyone knows if theres like an option or somethOpen SourceHi, I am Richard, creator of ExpressoTS framework. Currently we are working in a section of our docuDifficulty with deploying a Flask + React appHi - I have a code architecture with a Flask backend (python) and a Node React frontend. The architeAny way to measure API Metrics for APIs deployed via Railwaythe no. of requests, the avg response timeMultiple accounts with same Github account?Can I somehow have multiple accounts but use code from the same Github account? I want to have a sepCan't create accountI try to signup using email but only get this error: "Device requesting login is not supported pleaRedis Data not showing up. Also not able set the key as well from redis-cliI am not able to access redis via the Console of railway as well not set any key via redis cliregion is only exclusive for pro plan?i'm planning to subscribe to hobby plan because it's more fit for me but my only concern is that i cServer is not builtUntil last night at 2am I sent a PR and the server was updated this morning, I hired a professional How to increase the disk size of a volume?Hey is there a option to increase the size of a volume we need 10gb? Thx for helpI cant pay my doubtIm trying to use Railway services again and found that i owe it a subcription so im trying to pay itStrange deploy via GH ActionProject ID: 39c29a28-1554-436c-81ec-937a6e54b580 Hello everyone, i am having a small issue while deWarning: the environment variable LANG is not setI see this error in my deploy log: I am using a Pipfile and hence i changed the railway.json to have