R
Railway11mo ago
malik

why command No run??

Please anyone tell me why command No run
No description
100 Replies
Percy
Percy11mo ago
Project ID: N/A
Fragly
Fragly11mo ago
Mind clarifying what command you're trying to run?
malik
malikOP11mo ago
I want to link project with railway
malik
malikOP11mo ago
No description
Fragly
Fragly11mo ago
the railway link command doesn't take any arguments, you simply run railway link
malik
malikOP11mo ago
No description
Fragly
Fragly11mo ago
weird Are you logged in on the CLI? ( have you ran railway login before? )
malik
malikOP11mo ago
Yes I login cli and login railway Sir please tell me what I do that this command will be run?
Adam
Adam11mo ago
I’m unsure if it works in poweshell, can you try in a cmd window?
malik
malikOP11mo ago
I try but there also no work
Fragly
Fragly11mo ago
does it return any errors when you do it in cmd?
malik
malikOP11mo ago
This is cmd
No description
malik
malikOP11mo ago
There also no work code
Adam
Adam11mo ago
please run the command without arguments again
malik
malikOP11mo ago
No work
Adam
Adam11mo ago
please install the latest cli version
Adam
Adam11mo ago
malik
malikOP11mo ago
This run but after railway link no fun
No description
malik
malikOP11mo ago
I install latest version
Adam
Adam11mo 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
malikOP11mo ago
Let me check No work Please tell me this is my very important project Anyone here?
Medim
Medim11mo 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
malikOP11mo ago
Anyone here
gridonyx
gridonyx11mo ago
Do you have a team/workspace, project, and environment already created in your account on railway?
maddsua
maddsua11mo 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 Jahad11mo ago
CMD open > Do what he said. He is using powershell
maddsua
maddsua11mo ago
link works in powershell just fine, it's just it exits if any arguments are provided
maddsua
maddsua11mo ago
No description
Brody
Brody11mo ago
im thinking the same thing as grid, they might not have any projects in their dashboard
maddsua
maddsua11mo ago
nah Brody, it's a cli bug or poorly documented usecase
King Jahad
King Jahad11mo ago
What is this id that he put in the cli then?
Brody
Brody11mo 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
maddsua11mo ago
Brody pls take a look at my screenshot
josh
josh11mo ago
interesting
Brody
Brody11mo ago
they have ran railway link without an id too
No description
maddsua
maddsua11mo ago
💀
Brody
Brody11mo ago
you thought you had me there
maddsua
maddsua11mo ago
@malik if that's a new project, how about running railway init instead?
malik
malikOP11mo ago
Cmd in also not open
malik
malikOP11mo ago
No description
malik
malikOP11mo ago
Sir I I'd put I have big projects in node js
Brody
Brody11mo ago
I was talking about in the railway dashboard, do you have projects there?
malik
malikOP11mo ago
No description
malik
malikOP11mo ago
Sir I deploy code through vs code but code no run
Brody
Brody11mo ago
what version of the cli are you using? railway --version
malik
malikOP11mo ago
No description
malik
malikOP11mo ago
Sir you see no command run
Brody
Brody11mo ago
okay theres something wrong with vscode open a separate cmd terminal and run that command
malik
malikOP11mo ago
Cmd in also no run
Brody
Brody11mo ago
show me please
malik
malikOP11mo ago
No description
malik
malikOP11mo ago
Sir yesterday run but I don't know why today no work
Brody
Brody11mo ago
open a separate cmd terminal and run that command
maddsua
maddsua11mo ago
in a separate window, not inside vscode vscode might be glitching or something
malik
malikOP11mo ago
No description
Brody
Brody11mo ago
uninstall the railway cli
malik
malikOP11mo ago
Now I npm file delete? What command right that it will be uninstall
Brody
Brody11mo 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
malikOP11mo ago
I uninstalled Now?
Brody
Brody11mo ago
how have you uninstalled it
malik
malikOP11mo ago
I uninstalled files from my computer
Brody
Brody11mo ago
now run echo railway
malik
malikOP11mo ago
Run successful
maddsua
maddsua11mo ago
well the you didn't uninstall it
Brody
Brody11mo ago
screenshot please
maddsua
maddsua11mo ago
try running where railway to get it's location
malik
malikOP11mo ago
No description
malik
malikOP11mo ago
Now?
Brody
Brody11mo ago
run the command madussa said please
malik
malikOP11mo ago
Where railway?
maddsua
maddsua11mo ago
yeah
Brody
Brody11mo ago
not in powershell please
maddsua
maddsua11mo ago
it will print path to the executable if system can find it
malik
malikOP11mo ago
No description
malik
malikOP11mo ago
Now I install cli again?
Brody
Brody11mo ago
not in power shell use cmd
malik
malikOP11mo ago
Now I think I install cli again ?
malik
malikOP11mo ago
No description
Brody
Brody11mo ago
yes now install the cli again, in cmd
malik
malikOP11mo ago
Install done
Brody
Brody11mo ago
run railway --version
malik
malikOP11mo ago
No description
Brody
Brody11mo ago
run where railway
malik
malikOP11mo ago
Railway found
Brody
Brody11mo ago
lets see
malik
malikOP11mo ago
No description
Brody
Brody11mo 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
Adam11mo 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
Hys11mo 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 Jahad11mo ago
Does that matter?
maddsua
maddsua11mo ago
no it doesn't matter
malik
malikOP11mo ago
Now Anyone tell me what I do it will be run
King Jahad
King Jahad11mo ago
Start command prompt from outside of your editor. It should not be a powershell.
malik
malikOP11mo ago
I start command in cmd Not in PowerShell There also not work
gridonyx
gridonyx11mo 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
malikOP11mo ago
I think vs code problem??? Bro my computer is ok Or vs code settings problem??
gridonyx
gridonyx11mo 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
malikOP11mo ago
Right So now I reset my computer?
gridonyx
gridonyx11mo 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
Adam11mo 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