Reputation: 1687
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
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