-
-
Notifications
You must be signed in to change notification settings - Fork 248
cmd.exe is expected to be available on the PATH in WSL #186
Copy link
Copy link
Closed
Description
When I try to use open from WSL, it fails to open URLs
$ npx open-cli http://google.com
npx: installed 82 in 9.186s
events.js:291
throw er; // Unhandled 'error' event
^
Error: spawn cmd.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn cmd.exe',
path: 'cmd.exe',
spawnargs: [ '/s', '/c', 'start', '""', '/b', 'http://google.com' ]
}I'm assuming this is because there is no browser or it's otherwise WSL related.
Possibly related: #56, #173
Related: open-wc/open-wc#1763
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels