Open justincoh opened 4 years ago
Thank you, same issue here. Your tip worked for me.
Same workaround fixes this issue if you only have Brave installed and no other Chromium-based browser (Mozilla's web-ext
package uses chrome-launcher)
CHROME_PATH=/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser web-ext run --target chromium
Same workaround fixes this issue if you only have Brave installed and no other Chromium-based browser (Mozilla's
web-ext
package uses chrome-launcher)CHROME_PATH=/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser web-ext run --target chromium
Thanks! But web-ext
doesn't seem to pass environment variable so easily. Example for linux:
CHROME_PATH=/usr/bin/brave web-ext run --target chromium
Doesn't work. However, WEB_EXT_CHROMIUM_BINARY
will be recognized by web-ext
and used in place of --chromium-binary
flag:
WEB_EXT_CHROMIUM_BINARY=/usr/bin/brave web-ext run --target chromium
Works like a charm :+1:
(Also, now that I saw a bit of ugliness which OS X paths are, I'm very glad I didn't waste time and money on Mac. :joy:)
When attempting to
chromeLauncher.launch
, I receive the following error trace:I read through chrome-launcher source until i found this regex block, which appears to have the correct path to my chrome installation. I tried manually setting
CHROME_PATH=/Applications/Google\ Chrome\ Canary.app
process.env var to get around this, and ran up against a different error:This
EACCES
error was because thatCHROME_PATH
is not the path to the binary, but the higher level directory.Resolution
I have successfully launched chromeLauncher by passing the full path to the binary as an ENV var:
CHROME_PATH=/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary
. I'm not sure where chromeLauncher is getting lost, but this is how I was able to resolve it.Tech Details
chrome-launcher version: 0.13.3 osx version: 10.15.3
Full contents of my
index.js
:Successful with the following command
CHROME_PATH=/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary node index.js