简体   繁体   中英

Sencha CMD Error “Did not locate framework package”

I'm new to Sencha and I just installed Sencha CMD. Following Sencha's instructions I type 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've searched the internet for the error message and haven't found anything.

Try below command to generate sencha app.

sencha -sdk F:/touch-2.3.0 generate app Test-app . (Dot represent current directory)

sdk is the path to your touch library.

Test-app is your app name.

I had the exact same problem.

I had installed Sencha Cmd in a non-standard folder (within C:\\Program Files (x86)\\ ). Uninstalling Sencha Cmd and reinstalling it in the default folder ( C:\\Users\\<UserName>\\bin\\ ) made the error go away.

You need to run it with the ExtJS sdk path. In my case, the just downloaded ExtJS sdk:

sencha -sdk "C:\Users\username\Downloads\ext-5.1.1-trial\ext-5.1.1" generate app -ext MyApp ./app

It also need administrators right if you installed it in the ProgramFile Folder. Run your console with administator rights.

"Did not locate framework package"

You should run this command from inside of 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 sencha command via sudo. You shouldn't do that.

so just run

guy@idoru:~$ chmod +x SenchaCmd-<version>-linux-x64.run
guy@idoru:~$ ./SenchaCmd-<version>-linux-x64.run

instead of

guy@idoru:~$ sudo ./SenchaCmd-<version>-linux-x64.run

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM