简体   繁体   English

无法在sencha中找到framework.dir

[英]Unable to locate framework.dir in sencha

I have installed sencha cmd 4.0.4.84. 我安装了sencha cmd 4.0.4.84。 But when i tried to create an App it is showing Unalble to locate framework.dir property from sencha config.Ensure the command was executed from a valid framework direcotry.Non framework directory 但是,当我尝试创建一个应用程序时,它显示Unalble从sencha config中找到framework.dir属性。确保该命令是从一个有效的框架direcotry.Non框架目录执行的

It is exactly what it says: you are most likely running sencha from a wrong directory. 它正是它所说的:你很可能从错误的目录运行sencha

cd /where/you/extracted/ext-4.2.1
sencha generate app MyApp /where/you/want/myapp

For more details watch: Creating Workspace and Applications video. 有关详细信息,请观看: 创建工作区和应用程序视频。

I made a big mistake- i was running from sencha command root. 我犯了一个大错误 - 我从sencha命令root运行。 But it has to be running from Extjs version root. 但它必须从Extjs版本root运行。 we have to create a worklocation inside it. 我们必须在其中创建一个工作位置。 their will extjs folder and from their we need run the command to create the App. 他们将extjs文件夹和我们需要运行命令来创建应用程序。 Now it is working perfectly 现在它工作得很好

You'll want to take a look at the cmd tools and workspaces . 您需要查看cmd工具和工作区

A little more specifically take a look at the framework locations section of the page. 更具体地说,请查看页面的框架位置部分。

最好转到SDK文件夹,只需在生成应用程序时在命令中提及SDK路径:

sencha -sdk <YOUR SDK PATH> generate app <APP NAME> <PATH TO GENERATE APP>
Before creating any sencha app.
Understand 2 things.
1. Sencha CMD
2.Extjs framework.
Both are different.

Coming to point:.
1. Download the latest extjs framework.
2.Use the below command
sencha -sdk=path/to/ext generate app MyAPP path/to/worspace/of/MyApp

This will solve the above issue asked in question.
Danke,
Rahul

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM