0

How can i change the default browser fired up when running npm start for a create-reac-app created app?

It'll run Firefox but I'd like the Chrome...

Daros911
  • 435
  • 5
  • 14

1 Answers1

1

I think these links might help:

  1. https://coderrocketfuel.com/article/open-create-react-app-in-a-specific-browser
  2. create-react-app: How do I "npm start" with a specific browser?

Both set the BROWSER environment variable before executing the start command. In your case you'll have to edit the start command package.json file according to this answer: https://stackoverflow.com/a/59882442/10250548

lujobi
  • 44
  • 1
  • 5