旧的离子项目在npm install& amp;凉亭安装在新机器上

时间:2017-04-29 10:22:55

标签: angularjs ionic-framework

我有一个旧的Ionic项目,其package.json文件如下:

{
  "name": "example",
  "version": "1.1.1",
  "description": "example: An Ionic project",
  "dependencies": {
    "angular-messages": "^1.5.1",
    "gulp": "^3.5.6",
    "gulp-concat": "^2.2.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-rename": "^1.2.0",
    "gulp-sass": "^2.0.4"
  },
  "devDependencies": {
    "bower": "^1.3.3",
    "gulp-util": "^2.2.14",
    "shelljs": "^0.3.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [
    "android"
  ]
}

Bower.json:

{
  "name": "HelloIonic",
  "private": "true",
  "dependencies": {
    "angular": "~1.3.1",
    "angular-route": "~1.3.1",
    "angular-cookies": "~1.4.0",
    "bootstrap": "~3.3.0",
    "bootstrap-material-design": "~0.1.5",
    "jquery": "~2.1.1",
    "ngDialog": "~0.3.3",
    "underscore": "~1.7.0",
    "ionic": "^1.2.4",
    "angular-resource": "^1.5.2",
    "angular-google-chart": "^0.1.0",
    "angular-ui-router-styles": "^1.1.0",
    "angular-audio": "^1.7.2"
  }
}

通过这些设置,它几个月后就可以在我的一台机器上运行。今天我尝试在另一台机器上克隆这个仓库并尝试设置它,但遗憾的是遇到了像$http(...).success is not a function& Error: transition superseded at $StateProvider.$get。另外,如果我在我的开发者控制台中检查图像是否未加载。

我只是运行npm install ionic,npm install bower,npm install&然后凉亭安装。之后离子发酵

在不必更改代码的情况下,我应该如何在这些旧设置上运行项目?

更新

如果我在开发者控制台中执行angular.version,那么我会看到full: "1.6.4", major: 1, minor: 6, dot: 4, codeName: "phenomenal-footnote"和ionic.version:1.2.4

然而,在旧机器上,angular.version是1.5.8,离子反转是1.2.4

0 个答案:

没有答案