[AC-2065] titanium cli wans't shifting argv right
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2013-12-28T18:34:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | 3.2.0,, beta, cli,, node, titanium, |
Reporter | Răzvan Rădulescu |
Assignee | Chris Barber |
Created | 2013-12-11T22:48:20.000+0000 |
Updated | 2016-03-08T07:41:01.000+0000 |
same thing here, but your solution didn't work. Did you just comment the if part and applied the shift no matter what?
After the update to 3.2.0, on my Ubuntu 12.04, the ti command started to give the same error and the Titanium Studio was not detecting the Android SDK. So I edited the cli.js as mentioned above and it started to work and detected the Android SDK. Thanks
[~a.marcone] that's exactly what I did. I commented the if out and applied the shift no matter what. It doesn't break anything as far as I can tell on my machine.
This is a dupe of TIMOB-15804.
What worked for me was to replace the if statement with:
found here [http://developer.appcelerator.com/question/160741/titanium-cli-32-doesnt-work-on-ubuntu-because-it-doesnt-strip-the-node-executable-from-the-args]