Skip to content
I can't run commands from the Console
romanmoha
OP

17 days ago

I'm trying to run the npx prisma migrate status command—it doesn't work; it says bash: npx: command not found. Even the node -v command doesn't work. I open the console in the Nest.js service. I used to do the same thing and it worked, but now it doesn't.

Solved$60 Bounty

Pinned Solution

16 days ago

You can try run it with mise exec command

mise exec -- npx prisma migrate status

11 Replies

Status changed to Awaiting Railway Response Railway • 17 days ago


Railway
BOT

17 days ago

This is the kind of problem the Railway community is well placed to help with, so we'd like to open your thread as a community bounty. Railway pays a bounty to the community member who solves it, and threads like this usually get picked up quickly.

Opening it makes this entire thread public, including everything already posted. Nothing becomes public until you decide. Use the buttons below.

  • Open to the community - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away.
  • Keep it private and close the thread - Nothing becomes public and the thread closes.

Status changed to Awaiting User Response Railway • 17 days ago


Railway
BOT

16 days ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway • 16 days ago


Have you tried selecting your service, then press Cmd/Ctrl + K, then deploy latest commit?


romanmoha
OP

16 days ago

yes, the same problem


0x5b62656e5d

Have you tried selecting your service, then press Cmd/Ctrl + K, then deploy latest commit?

romanmoha
OP

16 days ago

yes, the same problem


Try creating a new service and see if running Node commands work in Console.


0x5b62656e5d

Try creating a new service and see if running Node commands work in Console.

romanmoha
OP

16 days ago

no, the same


Are you using Railpack as the builder?


0x5b62656e5d

Are you using Railpack as the builder?

romanmoha
OP

16 days ago

yes, Railpack

image.png


Try using a custom Dockerfile setup and see if the Node commands work in Console.


16 days ago

You can try run it with mise exec command

mise exec -- npx prisma migrate status


mayori

You can try run it with mise exec command `mise exec -- npx prisma migrate status`

romanmoha
OP

16 days ago

It works!!! Thank you


Status changed to Solved 0x5b62656e5d • 16 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...