R
Railway10mo ago
malik

why command No run??

Please anyone tell me why command No run
No description
100 Replies
Percy
Percy10mo ago
Project ID: N/A
Fragly
Fragly10mo ago
Mind clarifying what command you're trying to run?
malik
malik10mo ago
I want to link project with railway
malik
malik10mo ago
No description
Fragly
Fragly10mo ago
the railway link command doesn't take any arguments, you simply run railway link
malik
malik10mo ago
No description
Fragly
Fragly10mo ago
weird Are you logged in on the CLI? ( have you ran railway login before? )
malik
malik10mo ago
Yes I login cli and login railway Sir please tell me what I do that this command will be run?
Adam
Adam10mo ago
I’m unsure if it works in poweshell, can you try in a cmd window?
malik
malik10mo ago
I try but there also no work
Fragly
Fragly10mo ago
does it return any errors when you do it in cmd?
malik
malik10mo ago
This is cmd
No description
malik
malik10mo ago
There also no work code
Adam
Adam10mo ago
please run the command without arguments again
malik
malik10mo ago
No work
Adam
Adam10mo ago
please install the latest cli version
Adam
Adam10mo ago
malik
malik10mo ago
This run but after railway link no fun
No description
malik
malik10mo ago
I install latest version
Adam
Adam10mo ago
please run the command in a regular cli window, not in vscode if that doesn’t work, I’m not sure what the issue is. You’ll have to wait for someone who knows more about the cli to come by
malik
malik10mo ago
Let me check No work Please tell me this is my very important project Anyone here?
Medim
Medim10mo ago
This is a community driven server so be patient, wait untill a member with CLI knowledge can help you and try re-reading the CLI docs and or reinstalling, u already got kicked yesterday for dm'ing random members so be respectful this time.
malik
malik10mo ago
Anyone here
gridonyx
gridonyx10mo ago
Do you have a team/workspace, project, and environment already created in your account on railway?
maddsua
maddsua10mo ago
from the screenshot I can see you're trying to run it with the project id, try just typing in railway link it will proceed in interactive mode after it 'cause linking with a project id doesn't work for some reason even for me
King Jahad
King Jahad10mo ago
CMD open > Do what he said. He is using powershell
maddsua
maddsua10mo ago
link works in powershell just fine, it's just it exits if any arguments are provided
maddsua
maddsua10mo ago
No description
Brody
Brody10mo ago
im thinking the same thing as grid, they might not have any projects in their dashboard
maddsua
maddsua10mo ago
nah Brody, it's a cli bug or poorly documented usecase
King Jahad
King Jahad10mo ago
What is this id that he put in the cli then?
Brody
Brody10mo ago
showing no error is the bug of course, but there is a root cause, and i think the root cause is no projects
maddsua
maddsua10mo ago
Brody pls take a look at my screenshot
josh
josh10mo ago
interesting
Brody
Brody10mo ago
they have ran railway link without an id too
No description
maddsua
maddsua10mo ago
💀
Brody
Brody10mo ago
you thought you had me there
maddsua
maddsua10mo ago
@malik if that's a new project, how about running railway init instead?
malik
malik10mo ago
Cmd in also not open
malik
malik10mo ago
No description
malik
malik10mo ago
Sir I I'd put I have big projects in node js
Brody
Brody10mo ago
I was talking about in the railway dashboard, do you have projects there?
malik
malik10mo ago
No description
malik
malik10mo ago
Sir I deploy code through vs code but code no run
Brody
Brody10mo ago
what version of the cli are you using? railway --version
malik
malik10mo ago
No description
malik
malik10mo ago
Sir you see no command run
Brody
Brody10mo ago
okay theres something wrong with vscode open a separate cmd terminal and run that command
malik
malik10mo ago
Cmd in also no run
Brody
Brody10mo ago
show me please
malik
malik10mo ago
No description
malik
malik10mo ago
Sir yesterday run but I don't know why today no work
Brody
Brody10mo ago
open a separate cmd terminal and run that command
maddsua
maddsua10mo ago
in a separate window, not inside vscode vscode might be glitching or something
malik
malik10mo ago
No description
Brody
Brody10mo ago
uninstall the railway cli
malik
malik10mo ago
Now I npm file delete? What command right that it will be uninstall
Brody
Brody10mo ago
i dont know the npm command to do that off the top of my head, but im sure the answer can be found via your search engine of choice
malik
malik10mo ago
I uninstalled Now?
Brody
Brody10mo ago
how have you uninstalled it
malik
malik10mo ago
I uninstalled files from my computer
Brody
Brody10mo ago
now run echo railway
malik
malik10mo ago
Run successful
maddsua
maddsua10mo ago
well the you didn't uninstall it
Brody
Brody10mo ago
screenshot please
maddsua
maddsua10mo ago
try running where railway to get it's location
malik
malik10mo ago
No description
malik
malik10mo ago
Now?
Brody
Brody10mo ago
run the command madussa said please
malik
malik10mo ago
Where railway?
maddsua
maddsua10mo ago
yeah
Brody
Brody10mo ago
not in powershell please
maddsua
maddsua10mo ago
it will print path to the executable if system can find it
malik
malik10mo ago
No description
malik
malik10mo ago
Now I install cli again?
Brody
Brody10mo ago
not in power shell use cmd
malik
malik10mo ago
Now I think I install cli again ?
malik
malik10mo ago
No description
Brody
Brody10mo ago
yes now install the cli again, in cmd
malik
malik10mo ago
Install done
Brody
Brody10mo ago
run railway --version
malik
malik10mo ago
No description
Brody
Brody10mo ago
run where railway
malik
malik10mo ago
Railway found
Brody
Brody10mo ago
lets see
malik
malik10mo ago
No description
Brody
Brody10mo ago
that would be the expected output from an npm install this isnt looking like an issue with railway, it looks like an issue with your computer
Adam
Adam10mo ago
Is there a reason why you keep going back to the cmd in vscode even though we've told you to use the separate program?
Hys
Hys10mo ago
it seems to be an extra space when you wrote railway --version i don't know if that affects on windows
King Jahad
King Jahad10mo ago
Does that matter?
maddsua
maddsua10mo ago
no it doesn't matter
malik
malik10mo ago
Now Anyone tell me what I do it will be run
King Jahad
King Jahad10mo ago
Start command prompt from outside of your editor. It should not be a powershell.
malik
malik10mo ago
I start command in cmd Not in PowerShell There also not work
gridonyx
gridonyx10mo ago
i've tried a number of different things and I am not even remotely close to being able to reproduce this issue on two different computers lol works in command prompt, works in powershell/powershell core, works in vscode terminal powershell and cmd installed via npm - worked installed via scoop - worked works in both elevated and non-elevated in all as well so as brody stated yesterday, it's likely an issue with your computer
malik
malik10mo ago
I think vs code problem??? Bro my computer is ok Or vs code settings problem??
gridonyx
gridonyx10mo ago
if it is vscode problem, this is why multiple people have told you to try it in command prompt outside of vscode, which you said you did and it still did not work. so how could it be vscode?
malik
malik10mo ago
Right So now I reset my computer?
gridonyx
gridonyx10mo ago
i can't say what you should or shouldn't do in terms of your computer, especially something like resetting. it might be worth it to try uninstalling the cli again, then installing it via scoop instead of npm and doing this in command prompt or powershell outside of vscode
Adam
Adam10mo ago
you definitely should restart your computer first though, if that’s what you meant. That’s always the first troubleshooting step I do
Want results from more Discord servers?
Add your server