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

后端 未结 11 1942
一个人的身影
一个人的身影 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 07:59

    In Windows cmd, set env variable for desired browswer:

    set BROWSWER=chrome

    Then just run npm start like normal

提交回复
热议问题