When creating a react app, I run these commands in my terminal:
npx create-react-app app-name
npm install
npm start
npm start allows me to view my project locally, but I accidently closed my terminal before running ctrl + c
to end it. The browswer tab containing localhost 3000 (the npm start
default host) has been closed for a while now, but my project can still be viewed there everytime I follow that link. Now everytime I run npm start
it tells me that localhost 3000 is taken and I have to input another command and run it on localhost 3001. I've made this mistake a few times. I don't mind doing this, but it got me wondering if there is a global version of ctrl + c
that will close all of these at once.