The only thing I see so far that does not seem correct is the path you set for your ANT_ROOT you have “/Users/alexander/Desktop/SDK/ANT” there should be a file in ant that looks similar to this. This is what I have
the ANT_ROOT needs the “/bin” at the end of it. After you correct it let me know what happens when you re-install cocos2d-x and then run the cocos command
if you need help changing the environment variable to add “/bin” let me know and I will help.