2017-03-08 74 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'并尝试 –