mikaelbr / node-notifier-cli

CLI API for node-notifier as separate package.
143 stars 13 forks source link

Suggestions for why parallelshell breaks node-notifier? #1

Open mikaelbr opened 7 years ago

mikaelbr commented 7 years ago

https://github.com/mikaelbr/node-notifier/issues/109

From original Issue:


I've been able to get multiple people on multiple operating systems (OSX and Windows) to reproduce some unexpected behavior with the following package:

{
  "dependencies": {
    "node-notifier": "^4.5.0",
    "parallelshell": "^2.0.0"
  },
  "scripts": {
    "works": "npm run notify",
    "broken": "parallelshell \"npm run notify\"",
    "notify": "notify -t \"Some Title\" -m \"Some Message\" || echo 'failed'"
  }
}

For some reason when notify is called behind something run with parallelshell it will just hang. I'd love to try and figure out how I can get this unstuck but I'm not sure if it is a problem with parallelshell or node-notifier. :( Any ideas?

I've also opened an issue on parallelshel here: keithamus/parallelshell#52

troyblank commented 6 years ago

I also experience this using nodemon, just for the records.


  "dependencies": {
    "node-notifier-cli": "1.1.2",
    "nodemon": "1.17.1"
  },
  "scripts": {
    "works": "npm run notify",
   "broken": "nodemon --exec \"npm run notify\"",
    "notify": "notify -t \"Some Title\" -m \"Some Message\" || echo 'failed'" 
  }
}