Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 弃用警告:未处理的承诺拒绝被弃用。安卓系统中的ioni 2添加平台_Angular_Ionic Framework_Ionic2 - Fatal编程技术网

Angular 弃用警告:未处理的承诺拒绝被弃用。安卓系统中的ioni 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()

在离子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(). (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 
在项目根文件夹中,这将修复所有问题

文件:

在该错误消息中,您是否还遗漏了任何其他信息,这些信息可能有助于进一步了解源代码?