cocos: command not found 这个主要是cocos2d-console文件夹为空导致。 从github上面clone下来的文件会出现这个问题。 重新下载完整版本的cocos2d-x解决。