无效的规则结果:类 Promise 的实例 [英] Invalid rule result: Instance of class Promise

查看:24
本文介绍了无效的规则结果:类 Promise 的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Angular 7.1.4.我想用以下行生成一个新模块;

I work with Angular 7.1.4. I want to generate a new module with the following line;

ng g m 订单流程

但是我遇到了一个错误:

But I encountered an error:

Invalid rule result: Instance of class Promise.

如何解决这个问题?节点:8.11.3

How to fix this? Node: 8.11.3

package.json ( https://prnt.sc/o3cg54 )

推荐答案

我已经解决了我的问题.我的 angular/cli 版本是 7.0.7,但我在 package-lock.json 中找到了 @schematics/angular@8.0.3.因此,我运行npm install @schematics/angular@7.0.7 --save-dev"命令并解决了我的问题.感谢您的关注.

I'd solved my problem. My angular/cli version is 7.0.7 but I was find the @schematics/angular@8.0.3 in package-lock.json. So, I run the "npm install @schematics/angular@7.0.7 --save-dev" command and solved my problem. Thank you for interested.

这篇关于无效的规则结果:类 Promise 的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆