I’m following the tutorial to install developer tools but having trouble getting my react app to open in a browser other than the system default.
I’d like it to open in firefox but no matter what I put in the package.json file under scripts, it doesn’t seem to work. It always always always opens in Safari.
I’ve tried
In package.json scripts
"start": "BROWSER=firefox react-scripts start",
"start": "BROWSER=Firefox react-scripts start",
"start": "BROWSER='firefox' react-scripts start",
"start": "BROWSER='Firefox' react-scripts start",
"start": "BROWSER='Applications/Firefox.app' react-scripts start",
"start": "BROWSER=Applications/Firefox.app react-scripts start",
"start": "BROWSER='Firefox Developer Edition' react-scripts start",
"start": "BROWSER='firefox developer edition' react-scripts start",
giving up on firefox I also tried
"start": "BROWSER=brave react-scripts start",
"start": "BROWSER=brave-browser react-scripts start",
"start": "BROWSER='brave-browser' react-scripts start",
"start": "BROWSER=chromium react-scripts start",
I tried adding firefox as a script
"
firefox": "Browser=firefox react-scripts start"
then running
npm run firefox
and tried that with all the different permutations and versions above.
I’ve also tried all the different versions above as an argument from the terminal like
BROWSER=firefox npm start
Nothing seems to work. I can’t open it with Firefox, Chrome, or Brave, ONLY Safari and I’m pretty much stuck since Safari is the only browser that doesn’t seem to have a react developer tools extension for it.