candrholdings / slack-cli

A command line interface for Slack implemented using node.
https://candrholdings.github.io/slack-cli/
287 stars 31 forks source link

env: node\r: Not a directory #4

Closed jrode closed 9 years ago

jrode commented 9 years ago

Was getting env: node\r: Not a directory when trying to use slackcli command.

Got it working by:

vim /Users/username/.node/lib/node_modules/slack-cli/bin/cmd.js
:set ff=unix
:x
krzyzanowskim commented 9 years ago

It's still the thing. Can be fixed with dos2unix command (dirty hack)

> brew install dos2unix
> find /usr/local/lib/node_modules/slack-cli -name "*.js" | xargs sudo dos2unix
> slackcli --help

http://stackoverflow.com/questions/18492897/env-node-r-no-such-file-or-directory-with-cordova-cli

raymondkpwong commented 9 years ago

@krzyzanowskim Thanks.

Fixed in https://github.com/candrholdings/slack-cli/commit/87df2833bad18a30b8cecf7a29aff1d8c1398d55