I created a react app with creact-react-app. I launch the app with npm start. If I create the .env file with
BROWSER=google-chrome-stable
PORT=4000
The port is correctly configured, but the default browser is always launched. No matter if I sorround the browser with single quotes, double quotes, no quotes, or if google-chrome-stable, firefox or chromium-browser is used. A npm start always launches the default browser.
I also tried launching in the command line with BROWSER or changind the start section of the poackage.json file nothing works.
Only BROWSER=none works.
I also checked several other SO posts, also reinstalled, etc. nothing seems to solve the issue.
Versions are:
- ubuntu 20.04
- node 16.13.1
- npm 8.1.2
- react 17.0.2
- react-dom 17.0.2
- react-scripts 5.0.0
any hints?
Thank you!