Sencha: Cannot satisfy requirements for “ext”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 09:36:06

问题


trying to refresh my sencha extjs app and always get this error:

Commands:

sencha app refresh
sencha app upgrade

Always the same error:

[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

What can I do?

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

Thanks in advance


回答1:


This error is occurring because your app is not getting path for ext directory and therefore you are getting error like

[ERR] Cannot satisfy requirements for "ext"! [ERR] Cannot resolve package requirements

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

In case if you don't have ext then you can download from this link.Sencha




回答2:


With Sencha CMD 6.1 and up, if you want to use the 'app upgrade', you need to configure your framework first. I can't say for sure this will work with ExtJS 5, but it worked for going from 6.

https://twasink.net/2016/09/20/upgrading-to-extjs-6-2/ (see Step 1)



来源:https://stackoverflow.com/questions/39611449/sencha-cannot-satisfy-requirements-for-ext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!