Trying to use the iothub-explorer (https://www.npmjs.com/package/iothub-explorer) node by using the npm package for Azure I run into some problems. Namely as soon as I touched it I got an error:
env: node\r: No such file or directory
-zsh: list: command not found
So I figured out it was due to different line endings in unix and windows. So what I did was to open up /usr/local/lib/node_modules/iothub-explorer in my editor (atom) and with use of the atom package named lien-ending-converter.
And it works! Should of course be fixed at the source and supposedly has been according to this issue: https://github.com/Azure/azure-iot-sdks/issues/149. However I didn’t know how to install that version so in the mean time I fixed it with the trick above.