#why command No run??

131 messages · Page 1 of 1 (latest)

haughty mortar
#

Please anyone tell me why command No run

violet reefBOT
#

Project ID: N/A

main lanternBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

upper wave
#

Mind clarifying what command you're trying to run?

haughty mortar
#

I want to link project with railway

upper wave
#

the railway link command doesn't take any arguments, you simply run railway link

haughty mortar
upper wave
#

weird

#

Are you logged in on the CLI? ( have you ran railway login before? )

haughty mortar
#

Yes

#

I login cli and login railway

#

Sir please tell me what I do that this command will be run?

serene pilot
#

I’m unsure if it works in poweshell, can you try in a cmd window?

haughty mortar
#

I try but there also no work

upper wave
#

does it return any errors when you do it in cmd?

haughty mortar
#

This is cmd

#

There also no work code

serene pilot
#

please run the command without arguments again

haughty mortar
#

No work

serene pilot
#

please install the latest cli version

haughty mortar
#

This run but after railway link no fun

#

I install latest version

serene pilot
#

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

haughty mortar
#

Let me check

#

No work

#

Please tell me this is my very important project

haughty mortar
#

Anyone here?

brittle violet
#

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.

haughty mortar
#

Anyone here

crude niche
#

Do you have a team/workspace, project, and environment already created in your account on railway?

feral vector
#

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

languid thistle
#

He is using powershell

feral vector
#

link works in powershell just fine, it's just it exits if any arguments are provided

lean bramble
#

im thinking the same thing as grid, they might not have any projects in their dashboard

feral vector
#

nah Brody, it's a cli bug

#

or poorly documented usecase

languid thistle
lean bramble
#

showing no error is the bug of course, but there is a root cause, and i think the root cause is no projects

feral vector
#

Brody pls take a look at my screenshot

jolly helm
#

interesting

lean bramble
#

they have ran railway link without an id too

feral vector
#

💀

lean bramble
#

you thought you had me there

feral vector
#

@haughty mortar if that's a new project, how about running railway init instead?

haughty mortar
haughty mortar
haughty mortar
lean bramble
#

I was talking about in the railway dashboard, do you have projects there?

haughty mortar
#

Sir I deploy code through vs code but code no run

lean bramble
#

what version of the cli are you using? railway --version

haughty mortar
#

Sir you see no command run

lean bramble
#

okay theres something wrong with vscode

#

open a separate cmd terminal and run that command

haughty mortar
#

Cmd in also no run

lean bramble
#

show me please

haughty mortar
haughty mortar
lean bramble
#

open a separate cmd terminal and run that command

feral vector
#

in a separate window, not inside vscode

#

vscode might be glitching or something

haughty mortar
lean bramble
#

uninstall the railway cli

haughty mortar
#

Now I npm file delete?

#

What command right that it will be uninstall

lean bramble
#

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

haughty mortar
#

I uninstalled

#

Now?

lean bramble
#

how have you uninstalled it

haughty mortar
lean bramble
#

now run echo railway

haughty mortar
#

Run successful

feral vector
#

well the you didn't uninstall it

lean bramble
#

screenshot please

feral vector
#

try running where railway to get it's location

haughty mortar
#

Now?

lean bramble
#

run the command madussa said please

haughty mortar
#

Where railway?

feral vector
#

yeah

lean bramble
#

not in powershell please

feral vector
#

it will print path to the executable if system can find it

haughty mortar
#

Now I install cli again?

lean bramble
#

not in power shell

#

use cmd

haughty mortar
#

Now I think I install cli again ?

lean bramble
#

yes now install the cli again, in cmd

haughty mortar
#

Install done

lean bramble
#

run railway --version

haughty mortar
lean bramble
#

run where railway

haughty mortar
#

Railway found

lean bramble
#

lets see

haughty mortar
lean bramble
#

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

serene pilot
#

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?

woven oasis
#

i don't know if that affects on windows

languid thistle
#

Does that matter?

feral vector
#

no it doesn't matter

haughty mortar
#

Now Anyone tell me what I do it will be run

languid thistle
#

Start command prompt from outside of your editor.

#

It should not be a powershell.

haughty mortar
#

I start command in cmd

#

Not in PowerShell

#

There also not work

crude niche
#

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

haughty mortar
#

I think vs code problem???

haughty mortar
#

Or vs code settings problem??

crude niche
# haughty mortar I think vs code problem???

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?

haughty mortar
#

So now I reset my computer?

crude niche
#

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