I have installed 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
Asked
Active
Viewed 8,118 times
5 Answers
5
It is exactly what it says: you are most likely running sencha
from a wrong directory.
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.

Saki
- 5,827
- 2
- 15
- 15
-
Thank you, I donot understand in an asp.net application with extjs what is the need of installing sencha command. – Nayas Subramanian Dec 16 '14 at 10:50
-
Although I do not use Microsoft products so I don't have my own experience, [asp.net](http://en.wikipedia.org/wiki/ASP.NET) is a server side library/framework and Ext JS is a client side library. Hence, they operate more or less independently - of course the server side (asp.net) has to process requests from the client (Ext JS) and respond accordingly. – Saki Dec 16 '14 at 10:58
-
For that we donot need to install extjs through sencha command. We just have to refer extjs and extcss. And if it is a mvc structure we need we need to create a structure of app inside the application that has controller, view seperated. – Nayas Subramanian Dec 16 '14 at 11:07
-
As of now, you need to run this from the sencha touch folder `C:\Users\xyz\Downloads\sencha-touch-2.4.2-commercial\touch-2.4.2>sencha generate app MyApp D:\myapp` – ben_joseph Mar 02 '16 at 05:53
2
I made a big mistake- i was running from sencha command root. But it has to be running from Extjs version 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. Now it is working perfectly

Nayas Subramanian
- 2,269
- 21
- 28
1
You'll want to take a look at the cmd tools and workspaces.
A little more specifically take a look at the framework locations section of the page.
-
It's great to add links to resources, but it's much more helpful to include the relevant portions in your answer in case the links break in the future. – Taegost Feb 12 '18 at 20:14
1
It's better to go to the SDK folder just mention the SDK path in your command while generating the app:
sencha -sdk <YOUR SDK PATH> generate app <APP NAME> <PATH TO GENERATE APP>

shivam srivastava
- 440
- 5
- 9
0
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

rahulnikhare
- 1,362
- 1
- 18
- 25