chrome-native-messaging icon indicating copy to clipboard operation
chrome-native-messaging copied to clipboard

Failed to connect: Native host has exited.

Open riskers opened this issue 6 years ago • 2 comments

When I use my_host.js, occur error: Failed to connect: Native host has exited.

riskers avatar Jun 13 '18 07:06 riskers

Run the following:

which node

Then add the following line to the top of my_host.js:

#!/Users/eldad/.nvm/versions/node/v10.15.1/bin/node

(replacing the path with the output of which)

dutzi avatar Jul 27 '19 22:07 dutzi

Run the following:

which node

Then add the following line to the top of my_host.js:

#!/Users/eldad/.nvm/versions/node/v10.15.1/bin/node

(replacing the path with the output of which)

Worked like a charm!

aamir-nazir avatar Jan 01 '20 20:01 aamir-nazir