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.
+3
source to share
5 answers
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.
+1
source to share
... 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
0
source to share