andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
210 stars 273 forks source link

Error: The package tslib@2.0.0 does not satisfy its siblings' peerDependencies requirements! #137

Open aminbenab opened 3 years ago

aminbenab commented 3 years ago

Hello all,

Some support would be very much appreciated / needed after few days trying to get the iOS version working after the upgrade to Cordova-ios 6 (to get rid of UIWebview, thanks Apple).

In summary, installing cordova-plugin-fcm-with-dependecy-updated@7.0.9 doesn't work with the following error message:

472 info install cordova-plugin-fcm-with-dependecy-updated@7.0.9
473 info postinstall cordova-plugin-fcm-with-dependecy-updated@7.0.9
474 info prepublish cordova-plugin-fcm-with-dependecy-updated@7.0.9
475 verbose validateInstall loading app_directory/node_modules/cordova-plugin-fcm-with-dependecy-updated/ionic/package.json for validation
476 verbose stack Error: The package tslib@2.0.0 does not satisfy its siblings' peerDependencies requirements!
476 verbose stack     at  app_directory/node_modules/npm/lib/install.js:125:32
476 verbose stack     at app_directory/node_modules/npm/lib/install.js:268:7
476 verbose stack     at app_directory/node_modules/npm/node_modules/read-installed/read-installed.js:142:5
476 verbose stack     at app_directory/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
476 verbose stack     at app_directory/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
476 verbose stack     at app_directory/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
476 verbose stack     at cb (app_directory/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
476 verbose stack     at app_directory/node_modules/npm/node_modules/read-installed/read-installed.js:263:14
476 verbose stack     at asyncMap (app_directory/node_modules/npm/node_modules/slide/lib/async-map.js:27:18)
476 verbose stack     at next (app_directory/node_modules/npm/node_modules/read-installed/read-installed.js:234:5)
477 verbose cwd app_directory/node_modules/cordova-plugin-fcm-with-dependecy-updated/ionic
478 error Darwin 19.5.0
479 error argv "/usr/local/bin/node" "app_directory/node_modules/.bin/npm" "i" "--loglevel" "error" "--no-progress"
480 error node v10.16.3
481 error npm  v2.15.12
482 error code EPEERINVALID
483 error peerinvalid The package tslib@2.0.0 does not satisfy its siblings' peerDependencies requirements!
483 error peerinvalid Peer @angular/core@9.1.12 wants tslib@^1.10.0
484 verbose exit [ 1, true ]

Here is the environment I work on:

Ionic:

   Ionic CLI                     : 5.4.16 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.10
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : browser 6.0.0, ios 6.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 33 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 1.0.0

System:

   ios-deploy : 1.10.0
   ios-sim    : 8.0.1
   NodeJS     : v10.16.3 (/usr/local/bin/node)
   npm        : 2.15.12
   OS         : macOS Catalina
   Xcode      : Xcode 11.3.1 Build version 11C504

here is the list of plugins:

call-number 0.0.2 "Cordova Call Number Plugin"
com.googlemaps.ios 3.9.0 "Google Maps SDK for iOS"
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-clipboard 1.2.1 "Clipboard"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.1 "cordova-plugin-androidx-adapter"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-contacts 3.0.2-dev "Contacts"
cordova-plugin-contacts-phonenumbers 0.0.12 "Contacts Phone Numbers"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-facebook4 6.4.0 "Facebook Connect"
cordova-plugin-fcm-with-dependecy-updated 7.0.9 "Cordova FCM Push Plugin"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-filepath 1.5.8 "cordova-plugin-filepath"
cordova-plugin-fingerprint-aio 1.7.0 "FingerprintAllInOne"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-googleplus 8.5.0 "Google SignIn"
cordova-plugin-inappbrowser 4.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-qrscanner 3.0.1 "QRScanner"
cordova-plugin-sign-in-with-apple 0.0.1 "cordova-plugin-sign-in-with-apple"
cordova-plugin-sms-retriever-manager 0.0.2 "Device"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-vibration 3.1.1 "Vibration"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 5.6.8 "SocialSharing"
cordova-sms-plugin 1.0.0 "Cordova SMS Plugin"
cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova.plugins.diagnostic 6.0.0 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.20 "Ionic Deeplink Plugin"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

And the logs

npm-debug.log

Any support would very very much appreciated.

Thank you guys

andrehtissot commented 3 years ago

Hi @aminbenab

Would you share your package.json?

This issue seems like an incompatibility, not with the cordova plugins, but with the node dependencies you have in your project.

aminbenab commented 3 years ago

package.json.txt

Hi @andrehtissot

I have been playing with the other plugins of the project and the message disappeared (unfortunately I didn't take note of the exact change that made it disappear) and then it came back the last few days. I have the feeling that it is linked to the other plugins that are probably changing some libs versions.

Here is the package.json file

{
  "name": "Wallet",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "https://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "emulate:android": "ionic cordova emulate android -l",
    "emulate:ios": "ionic cordova emulate ios -l --target=\"iPhone-XR, 12.1\"",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^7.2.2",
    "@angular/core": "^7.2.2",
    "@angular/forms": "^7.2.2",
    "@angular/http": "^7.2.2",
    "@angular/platform-browser": "^7.2.2",
    "@angular/platform-browser-dynamic": "^7.2.2",
    "@angular/router": "^7.2.2",
    "@ionic-native/app-version": "^5.15.0",
    "@ionic-native/background-geolocation": "^5.21.6",
    "@ionic-native/branch-io": "^5.15.0",
    "@ionic-native/call-number": "^5.22.0",
    "@ionic-native/camera": "^5.26.0",
    "@ionic-native/camera-preview": "^5.14.0",
    "@ionic-native/clipboard": "^5.3.0",
    "@ionic-native/contacts": "^5.6.1",
    "@ionic-native/core": "^5.0.0",
    "@ionic-native/deeplinks": "^5.15.0",
    "@ionic-native/diagnostic": "^5.7.0",
    "@ionic-native/document-picker": "^5.14.0",
    "@ionic-native/facebook": "^5.20.0",
    "@ionic-native/fcm": "^5.6.1",
    "@ionic-native/file": "^5.6.1",
    "@ionic-native/file-path": "^5.6.1",
    "@ionic-native/fingerprint-aio": "^5.9.0",
    "@ionic-native/geolocation": "^5.21.6",
    "@ionic-native/google-maps": "^5.5.0",
    "@ionic-native/google-plus": "^5.14.0",
    "@ionic-native/in-app-browser": "^5.8.0",
    "@ionic-native/ionic-webview": "^5.9.0",
    "@ionic-native/launch-navigator": "^5.23.0",
    "@ionic-native/native-audio": "^5.22.0",
    "@ionic-native/network": "^5.3.0",
    "@ionic-native/qr-scanner": "^5.3.0",
    "@ionic-native/sign-in-with-apple": "^5.27.0",
    "@ionic-native/sms-retriever": "^5.19.1",
    "@ionic-native/social-sharing": "^5.3.0",
    "@ionic-native/splash-screen": "^5.0.0",
    "@ionic-native/status-bar": "^5.0.0",
    "@ionic-native/vibration": "^5.19.1",
    "@ionic/angular": "^4.9.0",
    "@ionic/storage": "^2.2.0",
    "@mauron85/cordova-plugin-background-geolocation": "^3.1.0",
    "@ngx-translate/core": "^11.0.1",
    "@ngx-translate/http-loader": "^4.0.0",
    "@types/jsonwebtoken": "^8.3.2",
    "@types/marker-animate-unobtrusive": "^0.2.5",
    "angular-cropperjs": "^1.0.1",
    "angularx-qrcode": "^1.5.3",
    "branch-cordova-sdk": "^4.0.0",
    "call-number": "^1.0.1",
    "cordova-android": "^9.0.0",
    "cordova-android-play-services-gradle-release": "^4.0.0",
    "cordova-android-support-gradle-release": "^3.0.1",
    "cordova-browser": "6.0.0",
    "cordova-clipboard": "1.2.1",
    "cordova-ios": "^6.1.0",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-add-swift-support": "2.0.2",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-browsersync": "^1.1.0",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-contacts": "git+https://github.com/aminbenab/cordova-plugin-contacts.git#9ecf037bd5dc277cdbf16f4149186b28fd75d562",
    "cordova-plugin-contacts-phonenumbers": "0.0.12",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-dialogs": "^2.0.2",
    "cordova-plugin-facebook4": "6.4.0",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-filepath": "^1.5.1",
    "cordova-plugin-fingerprint-aio": "1.7.0",
    "cordova-plugin-geolocation": "^4.0.2",
    "cordova-plugin-googlemaps": "^2.7.1",
    "cordova-plugin-googlemaps-sdk": "git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git",
    "cordova-plugin-googleplus": "git+https://github.com/EddyVerbruggen/cordova-plugin-googleplus.git",
    "cordova-plugin-inappbrowser": "^4.0.0",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^5.0.0",
    "cordova-plugin-nativeaudio": "^3.0.9",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-qrscanner": "3.0.1",
    "cordova-plugin-sign-in-with-apple": "^0.1.1",
    "cordova-plugin-sms-retriever-manager": "0.0.2",
    "cordova-plugin-splashscreen": "^6.0.0",
    "cordova-plugin-statusbar": "2.4.2",
    "cordova-plugin-vibration": "^3.1.1",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-plugin-x-socialsharing": "^5.6.8",
    "cordova-sms-plugin": "^1.0.0",
    "cordova-sqlite-storage": "^3.4.0",
    "cordova.plugins.diagnostic": "^6.0.0",
    "core-js": "^2.5.4",
    "cropperjs": "^1.5.5",
    "crypto": "^1.0.1",
    "es6-promise-plugin": "^4.2.2",
    "initials": "^3.0.1",
    "ionic": "^5.4.16",
    "ionic-modal-select": "^1.3.1-alpha.0",
    "ionic-plugin-deeplinks": "^1.0.20",
    "ionic-swipe-all": "^2.0.0",
    "ionic4-rating": "^1.0.9",
    "ionic4-star-rating": "^1.1.1",
    "ios-sim": "^8.0.2",
    "jsonwebtoken": "^8.5.1",
    "jwt-decode": "^2.2.0",
    "libphonenumber-js": "^1.7.21",
    "marker-animate-unobtrusive": "^0.2.8",
    "ng-circle-progress": "^1.5.1",
    "ng-lottie": "^0.3.2",
    "ngx-currency": "^2.0.0",
    "ngx-image-cropper": "^1.4.1",
    "ngx-socket-io": "^3.2.0",
    "node-sass": "^4.12.0",
    "passport-google-oauth": "^2.0.0",
    "performance-now": "^2.1.0",
    "rxjs": "~6.3.3",
    "stream": "0.0.2",
    "tslib": "^1.10.0",
    "uk.co.workingedge.phonegap.plugin.launchnavigator": "^5.0.4",
    "zone.js": "~0.8.29"
  },
  "devDependencies": {
    "@angular-devkit/architect": "~0.12.3",
    "@angular-devkit/build-angular": "^0.13.8",
    "@angular-devkit/core": "~7.2.3",
    "@angular-devkit/schematics": "~7.2.3",
    "@angular/cli": "~7.3.1",
    "@angular/compiler": "~7.2.2",
    "@angular/compiler-cli": "~7.2.2",
    "@angular/language-service": "~7.2.2",
    "@ionic/angular-toolkit": "~1.4.0",
    "@types/google-maps": "^3.2.2",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^10.14.4",
    "codelyzer": "~4.5.0",
    "cordova-plugin-facebook4": "6.4.0",
    "del": "^4.1.1",
    "gulp": "^4.0.2",
    "gulp-replace": "^1.0.0",
    "gulp-util": "^3.0.8",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "^4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "prettier": "1.18.2",
    "protractor": "~5.4.0",
    "ts-node": "~8.0.0",
    "tslint": "~5.12.0",
    "tslint-config-prettier": "^1.18.0",
    "typescript": "~3.1.6"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-qrscanner": {},
      "cordova-clipboard": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-file": {},
      "cordova-plugin-filepath": {},
      "cordova-plugin-fingerprint-aio": {
        "FACEID_USAGE_DESCRIPTION": " "
      },
      "cordova-sqlite-storage": {},
      "cordova-plugin-app-version": {},
      "ionic-plugin-deeplinks": {
        "URL_SCHEME": "semsempay.app.link",
        "DEEPLINK_HOST": "com.tledger.semsempay",
        "DEEPLINK_SCHEME": "https",
        "ANDROID_PATH_PREFIX": "/",
        "ANDROID_2_PATH_PREFIX": "/",
        "ANDROID_3_PATH_PREFIX": "/",
        "ANDROID_4_PATH_PREFIX": "/",
        "ANDROID_5_PATH_PREFIX": "/",
        "DEEPLINK_2_SCHEME": " ",
        "DEEPLINK_2_HOST": " ",
        "DEEPLINK_3_SCHEME": " ",
        "DEEPLINK_3_HOST": " ",
        "DEEPLINK_4_SCHEME": " ",
        "DEEPLINK_4_HOST": " ",
        "DEEPLINK_5_SCHEME": " ",
        "DEEPLINK_5_HOST": " "
      },
      "cordova-plugin-vibration": {},
      "cordova-sms-plugin": {},
      "cordova-plugin-sms-retriever-manager": {
        "PLAY_SERVICES_VERSION": "15.0.1"
      },
      "cordova-plugin-contacts-phonenumbers": {
        "CONTACTS_USAGE_DESCRIPTION": "This app needs contacts access"
      },
      "cordova-plugin-geolocation": {},
      "cordova-plugin-nativeaudio": {},
      "cordova-android-support-gradle-release": {},
      "cordova-plugin-camera": {
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "call-number": {},
      "cordova-plugin-sign-in-with-apple": {},
      "cordova-plugin-facebook4": {
        "APP_ID": "179165360066195",
        "APP_NAME": "com.tledger.tlibra",
        "FACEBOOK_HYBRID_APP_EVENTS": "false",
        "FACEBOOK_ANDROID_SDK_VERSION": "5.13.0"
      },
      "cordova-plugin-contacts": {},
      "cordova.plugins.diagnostic": {
        "ANDROID_SUPPORT_VERSION": "^28.0.0"
      },
      "uk.co.workingedge.phonegap.plugin.launchnavigator": {
        "GOOGLE_API_KEY_FOR_ANDROID": "AIzaSyBoyomONRNbA-fHZ9uA-_wHJylOhcLwOD4",
        "OKHTTP_VERSION": "3.12.0"
      },
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+",
        "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
      },
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "AIzaSyBoyomONRNbA-fHZ9uA-_wHJylOhcLwOD4",
        "API_KEY_FOR_IOS": "AIzaSyBoyomONRNbA-fHZ9uA-_wHJylOhcLwOD4",
        "LOCATION_WHEN_IN_USE_DESCRIPTION": "This app wants to get your location while this app runs only.",
        "LOCATION_ALWAYS_USAGE_DESCRIPTION": "This app wants to get your location always, even this app runs in background."
      },
      "cordova-plugin-googleplus": {
        "REVERSED_CLIENT_ID": "com.googleusercontent.apps.683238624190-ftahq4aocbgq2trt1r93it9ggps98a1u",
        "WEB_APPLICATION_CLIENT_ID": "683238624190-9slh23eqeo42m5sumsfhc052j006h9cc.apps.googleusercontent.com",
        "PLAY_SERVICES_VERSION": "15.0.1"
      },
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-androidx-adapter": {},
      "cordova-plugin-camera-preview": {},
      "cordova-plugin-fcm-with-dependecy-updated": {
        "ANDROID_FCM_VERSION": "19.0.0",
        "ANDROID_GRADLE_TOOLS_VERSION": "3.5.3",
        "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.3",
        "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher"
      }
    },
    "platforms": [
      "ios",
      "browser",
      "android"
    ]
  }
}