How can I unblock terminal after I run the dev Server? #8745
Replies: 4 comments 4 replies
-
Many shells allow running a command in the background by appending npm run dev & Don't forget to kill the process when you're done (or just close the terminal). |
Beta Was this translation helpful? Give feedback.
-
I have gone through the same problem but here I found my solution :
you can see the screenshots below : |
Beta Was this translation helpful? Give feedback.
-
@tony19's suggestion works if used in a package.json to run multiple commands. It even prefixes the Vite output with [1] to show it is the first process spawned: Package.json has: "scripts": {
"start": "vite --no-open & another command"
} |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
-
I need to run some commands after running the Vite command. I can't manage to do it since the terminal is stuck in this mode shown in the image below:

I would like to have the server running and be able to run commands after wards to automate Husky pre push commands.
Beta Was this translation helpful? Give feedback.
All reactions