live-server icon indicating copy to clipboard operation
live-server copied to clipboard

live-server --browser=chrome throwing error

Open rajakvk opened this issue 7 years ago • 3 comments

live-server --browser=chrome throwing following error
/usr/local/lib/node_modules/live-server/live-server.js:73
	process.chdir(process.argv[2]);
	        ^

Error: ENOENT: no such file or directory, uv_chdir
    at Error (native)
    at Object.<anonymous> (/usr/local/lib/node_modules/live-server/live-server.js:73:10)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:159:18)
    at node.js:444:3

Am on Mac 10.11.6 El Capiton

Not sure, this is configuration issue or live-server issue.

rajakvk avatar Mar 26 '17 17:03 rajakvk

I think you should use --browser=google-chrome. I'm not sure about Mac OS, but on Linux, the executable that can be found on $PATH when installing Google Chrome is usually google-chrome.

doronbehar avatar Dec 15 '17 19:12 doronbehar

I ran the command using --browser='Google Chrome'. This config worked work me on Mac OS 10.13.2 High Sierra.

jrmclaren avatar Mar 27 '18 10:03 jrmclaren

I think you should use --browser=google-chrome. I'm not sure about Mac OS, but on Linux, the executable that can be found on $PATH when installing Google Chrome is usually google-chrome.

thanks it worked for me

agarwalkoustubh38 avatar Jan 02 '22 15:01 agarwalkoustubh38