How to stop Yarn Package Manager script from CLI

https://yarnpkg.com/en/docs/cli/

Is there a way to stop what is started from the command “yarn run”? Is my only option to lookup the process number and call kill on it?

Answer

The usual way ctrl-c should work. If it doesn’t work, than you have bug in the script. The script’s author missed handler for shutdown (SIGINT/SIGTERM/etc).