sindresorhus/opn

Do you want to work on this issue?

You can request for a bounty in order to promote it!

process not exist after open #197

miaowm5 posted onGitHub

Version: 7.3.0 OS: Windows

I try to open a url and stop the process, but it not works. this is my code:

const open = require('open')
open('http://google.com')

and I have to use ctrl+c to stop the process...

I try version 7.1.0 and it works correct So, the use have change during 7.1.0 to 7.3.0 ?


Same issue, process won't exit after opening the url + events on child process are not working

const open = require('open')

const url = 'https://www.google.com/'
const opt = {
  wait: false, //  true don't make a diff
  app: 'firefox'
}
open(url, opt)
  .then(cp => {
    cp.on('close', (code) => {
      console.log(`child process closed with code: ${code}`)
       process.exit() // do nothing
    })
    cp.on('exit', (code) => {
      console.log(`child process exited with code ${code}`)
      process.exit() // do nothing
    })
  })
posted by Drozerah over 4 years ago

Hello! I have the same problem, is there no solution? I will try the version 7.1.0

posted by davidruizdiaz about 4 years ago

Hello! I have the same problem, is there no solution? I will try the version 7.1.0

Maybe this issue will help you ? https://github.com/sindresorhus/open/issues/236

I still use 7.1.0 now...

posted by miaowm5 about 4 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests