create-react-app: How do I “npm start” with a specific browser?

后端 未结 11 1972
一个人的身影
一个人的身影 2021-01-31 07:11

npm start

starts the react server on the default browser, which is Firefox for me. I like Firefox for browsing but prefer Chrome in web deve

11条回答
  •  天涯浪人
    2021-01-31 08:12

    Method by using .env file in the root of your NodeJS app.

    BROWSER="firefox developer edition"
    

提交回复
热议问题