Sencha CMD error "Didn't find the framework package"
I'm new to Sencha and I just installed Sencha CMD. Following the Sencha instruction, I will enter the following on the command line:
sencha generate app -ext MyApp ./app
But all I get is this error message:
C:\SenchaCMD\Sencha>sencha generate app -ext MyApp ./app
Sencha Cmd v5.0.1.231
[WRN] Did not locate framework package
[ERR] java.lang.NullPointerException
at com.sencha.util.PathUtil.normalizePathCharacters
...
...
at com.sencha.command.Sencha.main(Sencha.java:141)
I searched the internet for the error message and found nothing.
Try the command to create sencha app.
sencha -sdk F:/touch-2.3.0 generate app Test-app .
(Dot represents the current directory)
sdk is the path to your touch library.
Test-app is your application name.
I had the same problem.
I installed Sencha Cmd in a non-standard folder (within C:\Program Files (x86)\
). Removing Sencha Cmd and reinstalling in default folder ( C:\Users\<UserName>\bin\
) made the problem go away.
You need to run it with ExtJS sdk path. In my case, just loaded ExtJS sdk:
sencha -sdk "C:\Users\username\Downloads\ext-5.1.1-trial\ext-5.1.1" generate app -ext MyApp ./app
It also needs admins if you installed it in the ProgramFile folder. Start the console with administrator rights.
"Could not find frame package"
You must run this command from touch-2.3.1 folder.
[ERR] java.lang.NullPointerException
Run java -version looks like you are missing java
... and as a linux user the same error appears if you install the sencha command via sudo. You shouldn't be doing this.
so just run
guy@idoru:~$ chmod +x SenchaCmd-<version>-linux-x64.run
guy@idoru:~$ ./SenchaCmd-<version>-linux-x64.run
instead
guy@idoru:~$ sudo ./SenchaCmd-<version>-linux-x64.run