首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >离子-关于版本的混淆

离子-关于版本的混淆
EN

Stack Overflow用户
提问于 2017-08-30 07:56:32
回答 1查看 690关注 0票数 1

这是我从客户那里得到的package.json

代码语言:javascript
复制
{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
        "@angular/animations": "^4.1.3",
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@angular/platform-server": "4.1.3",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/device": "^3.12.1",
        "@ionic-native/file-opener": "^3.12.1",
        "@ionic-native/geolocation": "^3.12.1",
        "@ionic-native/status-bar": "^3.12.1",
        "@ionic/storage": "2.0.1",
        "@ng-idle/core": "^2.0.0-beta.8",
        "@ng-idle/keepalive": "^2.0.0-beta.8",
        "@types/ibm-mobilefirst": "0.0.28",
        "@types/jquery": "^3.2.6",
        "ajv": "^5.2.2",
        "ionic-angular": "^3.5.0",
        "ionicons": "3.0.0",
        "ng2-translate": "^4.2.0",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "typings": "^2.1.1",
        "zone.js": "0.8.12"
  },
  "devDependencies": {
        "@ionic/app-scripts": "^2.0.0",
        "grunt": "^1.0.1",
        "grunt-cli": "^1.2.0",
        "grunt-contrib-clean": "^1.1.0",
        "grunt-contrib-jshint": "^1.0.0",
        "grunt-contrib-watch": "^1.0.0",
        "grunt-contrib-copy": "^1.0.0",
        "grunt-exec": "^0.4.6",
        "grunt-file-exists": "^0.1.4",
        "grunt-include-replace": "^4.0.1",
        "grunt-string-replace": "^1.2.1",
        "grunt-template": "^0.2.3",
        "typescript": "2.3.4"
  },
  "cordovaPlugins": [
    "ionic-plugin-keyboard",
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-statusbar",
    "cordova-plugin-device",
    "cordova-plugin-splashscreen"
  ],
  "cordovaPlatforms": [
    "ios",
    {
      "platform": "ios",
      "version": "",
      "locator": "ios"
    }
  ],
  "description": "online_registration: An Ionic project"
}

当我尝试npm install时,我收到了这样的警告:

npm警告@角/动画@4.3.6需要一个“角/核心”的对等点4.3.6,但没有安装。npm警告@角/平台-服务器@4.1.3需要一个“角/动画”@4.1.3的对等点,但没有安装。npm警告@离子-本机/溅屏@3.1.0需要一个“离子-本机/核心@3.1.0”的对等点,但没有安装。npm警告@离子-本机/溅屏@3.1.0需要一个“角形/核心”的对等点2.4.8,但没有安装。npm警告@离子型本机/splash@3.1.0需要一个rxjs@5.0.1的对等点,但没有安装。npm警告咕噜-模板@0.2.3需要一个对等的咕噜@~0.4.0,但没有安装。npm警告NG2-翻译@4.2.0需要一个“角/核心”^2.0.0的对等点,但没有安装。npm警告NG2-翻译@4.2.0需要一个对等点@a/http@^2.0.0,但没有安装。

  1. 这有多关键?
  2. 然后我检查ionic info

cli包:(/Users/xxx/.nvm/versions/node/v6.9.1/lib/node_modules) @ ionic /cli-utils : 1.9.2离子(离子CLI):3.9.2 全球一揽子计划: Cordova CLI : 6.4.0 本地套餐: @离子型/app-脚本: 2.1.4 Cordova平台: android 6.1.2 ios 4.1.1离子框架:离子型-角3.6.0

它似乎没有遵循package.jsonionic-angular^3.5.0。这是正确的吗?

EN

回答 1

Stack Overflow用户

发布于 2017-08-30 08:26:22

您只需要删除node_modules文件夹,然后运行npm i.Hope,然后一切都会好起来。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45954953

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档