Ionic Cordova FCM 错误 node:844
Ionic Cordova FCM Error node:844
安装后,当我尝试 运行 或构建 android 时出现以下错误
cordova-plugin-fcm
插件。
(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.
有人知道吗?
移除android平台:
ionic cordova platform remove android
然后重新安装:
ionic cordova platform add android@6.4.0
现在您应该可以安装 cordova-plugin-fcm 而不会出现错误:
ionic cordova plugin add cordova-plugin-fcm
安装后,当我尝试 运行 或构建 android 时出现以下错误
cordova-plugin-fcm
插件。
(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.
有人知道吗?
移除android平台:
ionic cordova platform remove android
然后重新安装:
ionic cordova platform add android@6.4.0
现在您应该可以安装 cordova-plugin-fcm 而不会出现错误:
ionic cordova plugin add cordova-plugin-fcm