tape-run icon indicating copy to clipboard operation
tape-run copied to clipboard

option `--browser=chrome` not working

Open nichoth opened this issue 2 years ago • 4 comments

https://github.com/nichoth/wn-blob/blob/main/package.json

It returns 'no matches for chrome' even though chrome is installed

A test:

    "test": "browserify -d -p esmify test/index.js | tape-run --browser=\"chrome\" --render=\"tap-spec\""

results:

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('no matches for chrome/*')
    at new NodeError (node:internal/errors:371:5)
    at Stream.emit (node:events:383:17)
    at Stream.onerror (node:internal/streams/readable:773:14)
    at Stream.emit (node:events:406:35)
    at Stream.reemit (/Users/nick/code/wn-blob/node_modules/throughout/node_modules/duplexer/index.js:75:16)
    at Stream.emit (node:events:406:35)
    at /Users/nick/code/wn-blob/node_modules/browser-run/index.js:103:29
    at runRunner (/Users/nick/code/wn-blob/node_modules/browser-launcher/index.js:64:14)
    at /Users/nick/code/wn-blob/node_modules/browser-launcher/index.js:74:22
    at /Users/nick/code/wn-blob/node_modules/browser-launcher/index.js:47:22 {
  code: 'ERR_UNHANDLED_ERROR',
  context: 'no matches for chrome/*'

nichoth avatar Oct 29 '21 23:10 nichoth

I assume that's on mac OS, right?

juliangruber avatar Nov 01 '21 20:11 juliangruber

I can reproduce this on my mac

juliangruber avatar Nov 01 '21 20:11 juliangruber

I think the fix is switching to https://github.com/juliangruber/just-launch, as browser-run has been unmaintained from time to time and with the new approach we can easily maintain individual browsers.

juliangruber avatar Nov 01 '21 20:11 juliangruber

rm -rf ~/.config/browser-launcher/config.json

andrewvmail avatar Dec 21 '21 23:12 andrewvmail