Skip to content
Advertisement

How to run npm start without opening browser for react development on linux

I am learning react and find myself running npm start on the terminal a couple of times but its annoying how it opens a new browser window everytime. I’m trying to stop this from happening on linux.

I found a solution for how to do this on Windows, but how can I do it on Linux?

Advertisement

Answer

Adding BROWSER=none to the .env file should get it solved.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement