12 Oct 2017   react


When you know create-react-app will never be using port 3000 you can specify an alternate port, to avoid being prompted all the time.

Just pre-pend the port to the start script:

{
  "name": "custom-port",
  "version": "0.1.0",
  ...
  
  "scripts": {
    "start": "PORT=3001 react-scripts start",
    ...
  }
}
🍄