(1)我在macOS 10.12.5上使用Ext JS 6.5。
(2)我正在http://docs.sencha.com/extjs/6.5.0/guides/quick_start/going_to_production.html阅读指南。
(3)下载https://github.com/sencha-extjs-examples/QuickStart/archive/master.zip
(4)解压缩,将目录QuickStart-master
重命名为QuickStart
。
(5)Ext JS 6.5(解压后)放入/Users/donhuvy/Downloads/ext-6.5.0
。
我跑
cd /Users/donhuvy/Downloads/QuickStart
sencha app install --framework=/Users/donhuvy/Downloads/ext-6.5.0
我看到错误:
➜ ~ pwd
/Users/donhuvy
➜ ~ cd /Users/donhuvy/Downloads/QuickStart
➜ QuickStart sencha app install --framework=/Users/donhuvy/Downloads/ext-6.5.0
Sencha Cmd v6.5.0.180
[INF] Using existing workspace at /Users/donhuvy/Downloads/QuickStart
[INF] Copying framework to /Users/donhuvy/Downloads/QuickStart/ext
[INF] Loading configuration for framework directory: /Users/donhuvy/Downloads/QuickStart/ext
[INF] Upgrading to Ext JS 6.x
[INF] Upgrading to sdk at /Users/donhuvy/Downloads/QuickStart/ext
[ERR] Unable to locate .sencha folder
[ERR] Please ensure this folder is a valid v3 ExtJS application
[ERR] com.sencha.exceptions.ExScript: com.sencha.exceptions.ExState: No .sencha directory found (anonymous#27)
runAppUpgrade (anonymous:26)
[anonymous] (anonymous:464)
x_app_upgrade (anonymous:463)
➜ QuickStart sencha app install --framework=/Users/donhuvy/Downloads/ext-6.5.0
Sencha Cmd v6.5.0.180
[INF] Using existing workspace at /Users/donhuvy/Downloads/QuickStart
如何解决?
答案 0 :(得分:1)
从头开始执行以下步骤
打开终端
输入以下内容:
cd Downloads
unzip QuickStart-master.zip
mv QuickStart-master QuickStart
cd QuickStart
sencha app upgrade /Users/donhuvy/Downloads/ext-6.5.0
sencha app build
sencha app watch
当你看到
[INF] Waiting for changes...
[LOG] Fashion waiting for changes...
让应用继续运行,不要关闭终端或点击控制+ C
(请记住:清除浏览器的缓存)