使用sencha generate commande后出现此错误
C:\Users\usr\bin\Sencha\Cmd\3.1.2.342>sencha generate app senchapp "C:\Users\usr\Desktop\senchaapps"
创建senchaapps目录后出现错误:
[INF] generate-workspace:
[INF]
[INF] -after-generate-workspace:
[ERR] Unable to locate 'framework.dir' property from sencha.cfg
[ERR] Please ensure this command was executed from a valid framework directory
[ERR] Non-framework directory
答案 0 :(得分:10)
实际上,sencha命令应该从framework目录(touch-x.x.x文件夹)而不是cmd目录运行。使用终端,进入此框架文件夹,然后运行以下命令:
$ sencha generate app nameOfYourApp ../Path/or/your/app
希望这会奏效。
答案 1 :(得分:2)
也许问题可能是你没有设置SDK路径:
sencha -sdk ../bin/Sencha/touch-2.3.1/ generate app App .