Angular 弃用警告:未处理的承诺拒绝被弃用。安卓系统中的ioni 2添加平台
在离子2中添加平台时,出现以下错误Angular 弃用警告:未处理的承诺拒绝被弃用。安卓系统中的ioni 2添加平台,angular,ionic-framework,ionic2,Angular,Ionic Framework,Ionic2,在离子2中添加平台时,出现以下错误 (node:5360) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch()
(node:5360) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function without a catch
block, or by rejecting a promise which was not handled with .catch(). (rejection
id: 1)
(node:5360) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
这可能是因为节点模块过时了。 你可以试试跑步
ionic doctor check
在项目根文件夹中,这将修复所有问题
文件:
在该错误消息中,您是否还遗漏了任何其他信息,这些信息可能有助于进一步了解源代码?