Remove plugin ionic 2


#1

I want to remove plugin push, but I see bug :

Removing “phonegap-plugin-push”
(node:14444) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-plugin-googlemaps@dummy
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of ‘easuni’
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\KIEN\AppData\Roaming\npm-cache_logs\2018-05-03T04_31_50_954Z-debug.log

Can you help me.! thank you


#2

Can you post the contents of your package.json?


#3
  "dependencies": {
    "@angular/common": "5.0.3",
    "@angular/compiler": "5.0.3",
    "@angular/compiler-cli": "5.0.3",
    "@angular/core": "5.0.3",
    "@angular/forms": "5.0.3",
    "@angular/http": "5.0.3",
    "@angular/platform-browser": "5.0.3",
    "@angular/platform-browser-dynamic": "5.0.3",
    "@ionic-native/calendar": "^4.6.0",
    "@ionic-native/core": "4.4.0",
    "@ionic-native/diagnostic": "^4.7.0",
    "@ionic-native/geolocation": "^4.7.0",
    "@ionic-native/google-maps": "^4.6.0",
    "@ionic-native/header-color": "^4.7.0",
    "@ionic-native/location-accuracy": "^4.7.0",
    "@ionic-native/network": "^4.5.3",
    "@ionic-native/push": "^4.7.0",
    "@ionic-native/splash-screen": "4.4.0",
    "@ionic-native/sqlite": "^4.7.0",
    "@ionic-native/status-bar": "^4.4.0",
    "@ionic-native/toast": "^4.7.0",
    "@ionic/pro": "1.0.20",
    "@ionic/storage": "2.1.3",
    "cordova-android": "7.0.0",
    "cordova-ios": "4.5.4",
    "cordova-plugin-calendar": "^5.0.0",
    "cordova-plugin-device": "^2.0.1",
    "cordova-plugin-geolocation": "^4.0.1",
    "cordova-plugin-googlemaps": "dummy",
    "cordova-plugin-headercolor": "^1.0.0",
    "cordova-plugin-ionic-keyboard": "^2.0.5",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-request-location-accuracy": "^2.2.2",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-toast": "^2.6.2",
    "cordova-sqlite-storage": "^2.3.1",
    "cordova.plugins.diagnostic": "^4.0.5",
    "intl": "^1.2.5",
    "ionic-angular": "3.9.2",
    "ionic2-calendar": "^0.4.3",
    "ionicons": "3.0.0",
    "moment": "^2.22.1",
    "phonegap-plugin-push": "^2.1.3",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.8",
    "typescript": "2.4.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-network-information": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-calendar": {
        "CALENDAR_USAGE_DESCRIPTION": " "
      },
      "cordova-plugin-headercolor": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
      },
      "cordova-plugin-request-location-accuracy": {},
      "cordova.plugins.diagnostic": {},
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "(API_KEY_FOR_ANDROID)",
        "API_KEY_FOR_IOS": "(API_KEY_FOR_IOS)"
      },
      "phonegap-plugin-push": {
        "FCM_VERSION": "11.6.2"
      },
      "cordova-sqlite-storage": {},
      "cordova-plugin-x-toast": {}
    },
    "platforms": [
      "ios",
      "android"
    ]
  }

this is my package.json


#4

Manually remove the following item:

    "cordova-plugin-googlemaps": "dummy",