2017-03-08 135 views
0

合適的版本,當我運行亭子安裝我的申請,我得到這個錯誤無法找到的角度

無法找到合適版本的角度

{ 
"name": "o2o", 
    "homepage": "********", 
    "authors": [ 
    "***** <****@gmail.com>" 
    ], 
    "description": "Online to Offline Product", 
    "main": "", 
    "moduleType": [], 
    "license": "MIT", 
    "ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components", 
    "frontend/lib", 
    "test", 
    "tests" 
    ], 
    "dependencies": { 
    "angular": "~1.4.9", 
    "angular-route": "~1.4.9", 
    "angular-ui-router": "~0.2.17", 
    "bootstrap-sass": "^3.3.6", 
    "jquery": "~2.2.0", 
    "bootstrap": "~3.3.6", 
    "angular-sanitize": "^1.5.0", 
    "bourbon": "^4.2.7" 
    }, 
    "resolutions": { 
    "angular": "1.5.3" 
    } 
} 

誰能幫助我如何解決這個問題。

回答

0

更改1.5.31.5.X在這兩個決議和依賴關係。它將採用最新的1.5版本。

使用此JSON

{ 
    "name": "o2o", 
     "homepage": "https://github.com/Capillary/sharingan", 
     "authors": [ 
     "anshulsao <[email protected]>" 
     ], 
     "description": "Online to Offline Product", 
     "main": "", 
     "moduleType": [], 
     "license": "MIT", 
     "ignore": [ 
     "**/.*", 
     "node_modules", 
     "bower_components", 
     "frontend/lib", 
     "test", 
     "tests" 
     ], 
     "dependencies": { 
     "angular": "~1.5.x", 
     "angular-route": "~1.4.9", 
     "angular-ui-router": "~0.2.17", 
     "bootstrap-sass": "^3.3.6", 
     "jquery": "~2.2.0", 
     "bootstrap": "~3.3.6", 
     "angular-sanitize": "^1.5.0", 
     "bourbon": "^4.2.7" 
     }, 
     "resolutions": { 
     "angular": "1.5.x" 
     } 
    } 
+0

它的工作,但創造的API響應,在數據不響應來直接就在response.data來的,因爲角度版本 –

+0

然後我猜你需要的另一個問題與1.4版本一起去。用'1.4.x'替換'1.5.x'並嘗試 –