带有 extjs6 错误的 Sencha 初始化应用程序

Sencha init app with extjs6 error

我正在尝试使用 extjs 中的 setup guide。在我的主文件夹中下载 GPL 版本 6.2.0 并执行

sencha config --prop sencha.sdk.path=/home/username/sencha-sdks/ext-6.2.0

但是当我执行 init 命令时,出现以下错误:

sencha app init --ext@6.2.0 --modern MyApp 
Sencha Cmd v6.5.3.6
[INF] Using existing workspace at /home/bivol/myapp
[ERR] Cannot satisfy requirements for "ext"!
[INF]    The following versions are available:
[INF]       5.0.0.970 ( ... compatible back to 4.0)
[INF]       5.0.1.1255 ( ... compatible back to 4.0)
[INF]       5.1.0.107 ( ... compatible back to 4.0)
[INF]       5.1.1.451 ( ... compatible back to 4.0)
[INF]       6.0.0.640 ( ... compatible back to 6.0.0)
[ERR]    The following versions cannot be satisfied:
[ERR]       root: ext@6.2.0 (No matches!)
[ERR] Cannot resolve package requirements

似乎 cmd 道具没有正确保存。所以你必须在app init的时候指定extjs的路径。 我最终使用了这个有效的命令:

sencha app init -e /home/username/sencha-sdks/ext-6.2.0 --modern MyApp

Sencha Cmd v6.5.3.6
[INF] Using existing workspace at /home/bivol/myapp
[INF] Copying framework to /home/bivol/myapp/ext
[INF] Added framework ext to workspace.json
[INF] Loading framework from /home/bivol/myapp/ext