0
(1)我在macOS 10.12.5上使用Ext JS 6.5。無法找到.sencha文件夾
(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
如何解決呢?
這是同樣的結果。 –
奇怪的是,我得到了與'sencha應用安裝'相同的結果,但它與'sencha app upgrade'一起工作。你應該看到 [INF]升級框架EXT [INF]複製框架/用戶/ donhuvy /下載/快速入門/ EXT [INF]框架 '分機' 升級 –
申請我的步驟之後,還適用你的腳步,當我訪問http:// localhost:1841我什麼都看不到,但是當查看頁面源時,我看到網頁裏面有HTML內容。 –