soarinblue
soarinblue

Reputation: 1687

How to stop the service of nuxt js with npm command

I can start the service of nuxt js with npm run start, but how i can stop the service with npm command? By the way, I don't want to use pm2.

Upvotes: 1

Views: 7188

Answers (1)

Nicolas Pennec
Nicolas Pennec

Reputation: 7631

you need to find the process id (PID) of your current npm run start instance:

pgrep -f npm

and then kill that process:

kill -9 <PID>

or, directly run the following shortcut:

pgrep -f npm | xargs kill -9

Upvotes: 7

Related Questions