离子添加平台android / ios:找不到模块配置链

时间:2017-02-24 11:51:06

标签: cordova ionic-framework ionic2

我想升级我的离子版本。所以我只是运行

  

npm install -g ionic cordova

似乎已成功安装。但是当我跑步时

  

离子添加平台android / ios

显示 无法找到模块配置链 。所以。我只需按照说明安装配置链模块。刚出现另一个模块:(。某某......在安装了大约10个模块之后。它显示 可能这是连接问题,或者平台规格不正确......

哦〜有人出现帮助我!?感谢~~~

@suraj my package.json:

"dependencies": {
  },
  "devDependencies": {
    "bower": "^1.3.3",
    "del": "^1.1.1",
    "gulp": "^3.5.6",
    "gulp-angular-templatecache": "^2.0.0",
    "gulp-autoprefixer": "^3.1.1",
    "gulp-bytediff": "^1.0.0",
    "gulp-concat": "^2.2.0",
    "gulp-csso": "^2.0.0",
    "gulp-filter": "^4.0.0",
    "gulp-flatten": "^0.3.1",
    "gulp-header": "^1.8.8",
    "gulp-if": "^2.0.2",
    "gulp-imagemin": "^3.1.1",
    "gulp-inject": "^4.2.0",
    "gulp-load-plugins": "^1.4.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-minify-html": "^1.0.6",
    "gulp-ng-annotate": "^2.0.0",
    "gulp-order": "^1.1.1",
    "gulp-plumber": "^1.1.0",
    "gulp-protractor": "^3.0.0",
    "gulp-rename": "^1.2.0",
    "gulp-rev": "^7.1.2",
    "gulp-rev-replace": "^0.4.3",
    "gulp-sass": "^2.0.4",
    "gulp-sourcemaps": "^1.9.1",
    "gulp-task-listing": "^1.0.1",
    "gulp-uglify": "^2.0.0",
    "gulp-useref": "^3.1.2",
    "gulp-util": "^2.2.14",
    "gulp-watch": "^4.3.11",
    "jasmine-core": "^2.5.2",
    "karma": "^1.3.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-coverage": "^1.1.1",
    "karma-jasmine": "^1.1.0",
    "karma-junit-reporter": "^1.2.0",
    "karma-mocha-reporter": "^2.2.1",
    "protractor": "^4.0.14",
    "run-sequence": "^1.2.2",
    "shelljs": "^0.3.0",
    "wiredep": "^4.0.0",
    "yargs": "^6.5.0"
  },
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": []

1 个答案:

答案 0 :(得分:1)

config-chain是npm依赖项,因此你的npm安装可能会被破坏。

尝试重新安装,或者使用 npm 之一,如果由于某种原因npm本身无法在您的系统上安装

参考reinstall npm