B
B
Black Developer @Black2021-08-01 11:03:57
Node.js
Black Developer @Black, 2021-08-01 11:03:57

Create react app npm start command doesn't open browser tab, how to fix?

Tried on two computers. One opened and the other didn't. I will work on both, so I need to fix it. In the console I enter npm start. The command seems to run successfully, but the tab does not open. Thank you in advance for your response

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
approximate solution, 2021-08-02
@approximate_solution

It was possible to disable this function in .env with the BROWSER=none flag, then the window opening function did not work (no matter how annoying), dig webpack settings.
Or - create a new cra project, in the Windows panel try to change the default browser to some other one in order to accurately track down the problem: a) a problem with cra b) a problem with Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question