我正在关注Ionic Push setup指南,但我在尝试安装phonegap插件时遇到错误:
cordova插件添加phonegap-plugin-push --variable SENDER_ID = 123456789 --save --verbose
我得到了错误:
错误:版本无效:已损坏
这是ionic info --verbose
生成以下输出:
[DEBUG] Loading global plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin- proxy
[DEBUG] Loading local plugin @ionic/cli-plugin-cordova
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular
global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 1.1.4
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android broken
Ionic Framework : ionic-angular 2.2.0
System:
Node : v6.9.1
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.8
有人能指出我正确的方向吗?
答案 0 :(得分:0)
关注此链接:: https://github.com/phonegap/phonegap-plugin-push
尝试使用此命令安装插件 cordova插件添加https://github.com/phonegap/phonegap-plugin-push