Sencha: Cannot satisfy requirements for “ext”

2019-07-30 04:56发布

问题:

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)