在安装cordova-plugin-fcm插件之后,当我尝试运行或构建android时,我会遇到以下错误。
(node:844) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Invalid data, chunk must be a string or buffer, not object (node:844) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exxit code.
有人知道吗?
发布于 2018-02-21 00:15:48
删除android平台:
ionic cordova platform remove android然后重新安装:
ionic cordova platform add android@6.4.0现在,您应该能够安装cordova-plugin,而不会出现错误:
ionic cordova plugin add cordova-plugin-fcmhttps://stackoverflow.com/questions/48895186
复制相似问题