[英]Sencha Unable to locate supported Framework on windows
I'm new to Sencha.我是 Sencha 的新手。 I tried to install the cmd and to generate a new app but the error
Unable to locate supported Framework
pops out.我尝试安装 cmd 并生成一个新应用程序,但弹出
Unable to locate supported Framework
的错误。 I've tried to set the system variable to the sencha sdk folder path but doesn't work anyway.我尝试将系统变量设置为 sencha sdk 文件夹路径,但无论如何都不起作用。 The command that I write is this:
sencha -sdk C:/Users/JohnDoe/bin/Sencha/Cmd/7.3.0.19/ generate app myApp C:\Users\JohnDoe\Desktop\sencha
.我写的命令是这样的:
sencha -sdk C:/Users/JohnDoe/bin/Sencha/Cmd/7.3.0.19/ generate app myApp C:\Users\JohnDoe\Desktop\sencha
Then the errors I get are these:然后我得到的错误是:
[ERR] Unable to locate supported Framework [ERR] 无法找到支持的框架
Please ensure this command was executed from a supported framework
directory or that a framework directory was specified via the -sdk switch.
For example:
sencha -sdk /path/to/framework-dir generate app AppName path/to/app
[ERR] com.sencha.exceptions.ExState: Not a framework directory: C:/Users/JohnDoe/bin/Sencha/Cmd/7.3.0.19/ [ERR] com.sencha.exceptions.ExState:不是框架目录:C:/Users/JohnDoe/bin/Sencha/Cmd/7.3.0.19/
You have added the cmd path instead of extjs sdk.您已添加 cmd 路径,而不是 extjs sdk。
You would need to get the ExtJs sdk and extract it and replace the sdk path in the above command.您需要获取 ExtJs sdk 并将其解压缩并替换上述命令中的 sdk 路径。
It would be like as shown below如下所示
sencha -sdk="D:\Work\ExtJsStuff\ext-7.2.0\ext-7.2.0" generate app SampleApp./ sencha -sdk="D:\Work\ExtJsStuff\ext-7.2.0\ext-7.2.0" 生成应用SampleApp./
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.