2017-06-24 101 views
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-masterQuickStart

(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 

如何解決呢?

回答

1

按照從一開始

  1. 下載https://github.com/sencha-extjs-examples/QuickStart/archive/master.zip
  2. 打開終端,這些步驟

  3. 鍵入以下內容:

    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... 
    

    離開應用程序運行時,不要關閉終端或按Ctrl + C

  4. 訪問:http://localhost:1841/

(記住:清除瀏覽器的緩存)

+0

這是同樣的結果。 –

+0

奇怪的是,我得到了與'sencha應用安裝'相同的結果,但它與'sencha app upgrade'一起工作。你應該看到 [INF]升級框架EXT [INF]複製框架/用戶/ donhuvy /下載/快速入門/ EXT [INF]框架 '分機' 升級 –

+0

申請我的步驟之後,還適用你的腳步,當我訪問http:// localhost:1841我什麼都看不到,但是當查看頁面源時,我看到網頁裏面有HTML內容。 –