我正在尝试在ios平台上的项目中安装OneSignal插件,它可以安装该插件,但是在执行添加平台的例程时,它始终会显示此错误消息。
Installing "onesignal-cordova-plugin" for ios
Failed to install 'onesignal-cordova-plugin': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
[ERROR] An error occurred while running subprocess cordova.
我的离子信息
cli软件包:(/ usr / local / lib / node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
全局软件包:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
本地软件包:
@ionic/app-scripts : 3.2.1
Cordova Platforms : ios 4.5.5
Ionic Framework : ionic-angular 3.9.2
系统:
ios-deploy : 1.9.4
Node : v10.15.0
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
环境变量:
ANDROID_HOME : not set
其他:
backend : pro