2

使用 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
4

2 回答 2

10

实际上,sencha 命令应该从框架目录(touch-xxx 文件夹)而不是 cmd 目录运行。使用您的终端,进入此框架文件夹,然后运行以下命令:

$ sencha generate app nameOfYourApp ../Path/or/your/app

希望这会奏效。

于 2013-09-09T15:35:45.517 回答
2

也许问题可能是您没有设置 SDK 路径:

 sencha -sdk ../bin/Sencha/touch-2.3.1/ generate app App .
于 2014-04-18T15:54:02.600 回答