Search code examples
extjssencha-cmd

Sencha is not recognized as internal or external command


When I write sencha in CMD I get this errror:

'sencha' is not recognized as an internal or external command, operable program or batch file.

It is setup automatically like this as an enviromental variable:

enter image description here

but still it is not working.

Any ideas why?


Solution

  • It seems you need to setup sencha cmd to your PATH variable, try something like this: Add SENCHA CMD variable to PATH variable

    Another option, is append to PATH variable in CMD session, like this:

    C:\Users\myUser>set SENCHA_CMD_6=C:\mySenchaPath\cmd\6.5.2.15
    
    C:\Users\myUser>
    C:\Users\myUser>set PATH=%SENCHA_CMD6%;%PATH%
    
    C:\Users\myUser>
    C:\Users\myUser>sencha
    Sencha Cmd v6.5.2.15
    

    PS: I think you can set the variable to C:\mySenchaPath\cmd (without specifying the version), usually it contains a sencha.exe file that points to the current version.