Sencha:不能满足对"ext"请求的要求. [英] Sencha: Cannot satisfy requirements for "ext"
问题描述
尝试刷新我的sencha extjs应用程序,并始终收到此错误:
trying to refresh my sencha extjs app and always get this error:
命令:
sencha应用刷新
sencha应用程序升级
sencha app refresh
sencha app upgrade
总是相同的错误:
[ERR] Cannot satisfy requirements for "ext"!
[ERR] The following versions cannot be satisfied:
[ERR] root: ext@5.1.1.451 (No matches!)
[ERR] Cannot resolve package requirements
我该怎么办?
Sencha Cmd:v6.1.3.42(在最新版本6.2.0中,我也收到此错误)
核心版本5.0.0
Extjs版本5.1.1.451
Sencha Cmd: v6.1.3.42 (with last version 6.2.0 I get this error too)
Core Version 5.0.0
Extjs Version 5.1.1.451
预先感谢
推荐答案
之所以发生此错误,是因为您的应用程序没有获取ext目录的路径,因此出现了类似的错误
This error is occurring because your app is not getting path for ext directory and therefore you are getting error like
[ERR]无法满足"ext"的要求! [ERR]无法解决 包装要求
[ERR] Cannot satisfy requirements for "ext"! [ERR] Cannot resolve package requirements
要解决此问题,请在您的应用中打开此文件YourApp\.sencha\workspace\sencha.cfg
,并在此配置文件中提供ext.dir的路径
例子 :
ext.dir=${workspace.dir}/../../../../Ext6.0.3
to resolve this open this file YourApp\.sencha\workspace\sencha.cfg
in your app and in this config file give the path of your ext.dir
example :
ext.dir=${workspace.dir}/../../../../Ext6.0.3
如果没有ext,则可以从此链接下载. Sencha
In case if you don't have ext then you can download from this link.Sencha
这篇关于Sencha:不能满足对"ext"请求的要求.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!