When trying to run cordova cli on OSX get an error
env: node\r: No such file or directory
I got the latest version of cordova from npm so I think it is 3.0.7
The problem seems to be that cordova is in dos format
once I converted it to Unix format it seems to work. I don't get the env: node\r: No such file or directory error.
I used dos2unix to make the change https://code.google.com/p/rudix/downloads/detail?name=dos2unix-5.3.3-0.pkg
On my machine the cordova file was actually in usr/local/lib/node_modules/cordova/bin/cordova