railway-cli is not recognized command when in cmd
space-we3
TRIALOP

2 years ago

Hi, I am trying to use railway-cli in cmd and I have successfully installed railway-cli using npm i -g @railway/cli

but it is showing railway is not recognized as internal or external command.

I even ran in node terminal but still same "unknown command".

Can someone tell me where should I run the command?

2 Replies

2 years ago

the command is just railway

sometimes you will need to log out and back in so that the PATH variable is reloaded by the terminal


space-we3
TRIALOP

2 years ago

The issue arose from the fact that my node_modules directory (bin and node_modules) was not included in the PATH. After I added them in system path then it worked. I appreciate your suggestion.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...