mac环境,下载了3.14.1版本,解压,./setup.py之后,后面的3个关于安卓的配置skip了,然后source 了一下,运行cocos 命令,/bin/cocos: line 3: dirname: command not found /bin/cocos: line 6: python: command not found报了这两个错,请大神指点下。
你是要创建新项目么?
是的,但即使我没有创建项目,我输入 命令 cocos 都会报这两个错。
cd D:\2dsoft\cocos2d-x-3.0\tools\cocos2d-console\bin
cocos new hello -p com.qyz.game -l cpp -d 路径
cocos new hello -p com.qyz.game -l cpp -d 路径
前边加./
表示执行当前目录下的cocos
大哥·····非要问完整的给你打出来么
./cocos new hello -p com.qyz.game -l cpp -d 路径
是前边加./
后边写你的路径,可以是绝对路径
cocos命令的环境变量没有写成功吧?


