Sencha command - not a valid sdk directory, please cd into a valid directory

4.3k Views Asked by At

I'm having a problem with sencha command. I've cd'd into the path containing the SDK and then pointed to the path of my app but I get the above error. Is this a beta bug or am I missing something? Not sure what else to try....

My command prompt:

C:\Program Files (x86)\SenchaSDKTools-2.0.0-beta3>sencha app create MyApp C:\Development\MyNewApp
2

There are 2 best solutions below

3
Titouan de Bailleul On BEST ANSWER

You need to go to the SDK folder not the SDK Tools folder to execute sencha command

0
voithos On

If you're using the newest version of Sencha Touch, then you shouldn't use the Sencha SDK Tools. Instead, download and use Sencha Cmd (it's a different program with the same name; confusing, yes).

Otherwise, here's a thread which discusses this problem. There are a number of solutions presented, one of which is downloading Sencha Touch and creating a .senchasdk file within it.