Skip to content

Commit

Permalink
Fix daemon-spawn code for windows (close #24, close #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Dec 18, 2020
1 parent fb4ab94 commit ad5fe10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hyper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function startDaemon (name, readable) {
const daemonRoot = p.dirname(require.resolve(name))
const binPath = p.join(daemonRoot, 'bin', 'index.js')
console.error(`${readable} daemon started`)
return spawn(binPath, {
return spawn('node', [binPath], {
detached: true
})
}
Expand Down

0 comments on commit ad5fe10

Please sign in to comment.