generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

How can I change this behaviour to launch Chrome instead of IE with npm start?

Open sruthigit opened this issue 8 years ago • 5 comments
trafficstars

I am trying to build an Angular 2 application using VSCode editor. On my machine the default browser is IE. When I run npm start it launches the application in IE. But I want to launch my application in Chrome.How can I change this behaviour to launch Chrome instead of IE with npm start?

sruthigit avatar Oct 27 '17 16:10 sruthigit

try this https://support.google.com/chrome/answer/95417?hl=en&co=GENIE.Platform%3DDesktop

It worked for me

AndresDevelop avatar Jun 21 '18 14:06 AndresDevelop

I'm a little late to the party, but possibly this post post will help you. If the link ever breaks, it deals with injecting BROWSER='Chrome' into your start string (per the post, 'Google Chrome' did not work for me).

As an example, for my application I had the below which always opened in IE (work computer, can't change the default browser): "scripts": { "start": "cross-env PORT=8080 react-scripts start" }

...and I changed to: "scripts": { "start": "cross-env PORT=8080 BROWSER='Chrome' react-scripts start" }

jasel-lewis avatar Sep 27 '18 14:09 jasel-lewis

...and here's why BROWSER='Google Chrome' did not work for me (I'm on a Windows system).

jasel-lewis avatar Sep 27 '18 15:09 jasel-lewis

I found this thread, in my case I was trying to run npm Start from a CLI as administrator. When I went back to a regular CLI (not administrator) it launches from Chrome, which is good enough for what I needed.

SanDiegoCasey avatar Jan 27 '19 01:01 SanDiegoCasey

You See THis video solve your problem https://www.youtube.com/watch?v=m-MzAA0TOvA&t=232s

shubhammaheshan avatar Apr 12 '20 08:04 shubhammaheshan