Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
Make VS Code open Chrome browser when running 'npm start' React script when inside a Linux WSL2 distro on Windows 11

I'm developing on a Windows 11 system in an Ubuntu WSL2 environment and I need VS Code to open Chrome instead of my system's default browser (MS Edge), when I run the 'npm start' React script.

I've tried using the cross-env package to help me set the BROWSER env variable in the React script command but it's not working with the following permutations:

"start": "cross-env BROWSER=chrome react-scripts start"
"start": "cross-env BROWSER='chrome' react-scripts start"
"start": "cross-env BROWSER='google chrome' react-scripts start"
"start": "cross-env BROWSER=google-chrome-stable react-scripts start"
"start": "cross-env BROWSER='google-chrome-stable' react-scripts start"

Web developer life should not be this hard 😢

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!