【发布时间】:2018-09-20 17:08:22
【问题描述】:
问题:
在我的 Angular 5+ 应用程序项目中,在我的一个子文件夹中,在我输入 ng g c my-component 推荐后,没有生成任何东西,而是弹出一些未知错误,有人知道这里发生了什么吗?我已经多次重新安装了 npm/angular@cli。
jocs@Jocs ~/r/s/a/pages (devReno)> ng g c my-new-component
Error: Could not find (undefined)
Could not find (undefined)
jocs@Jocs ~/r/s/a/pages (devReno) [1]> ng generate component my-new-component
Error: Could not find (undefined)
Could not find (undefined)
jocs@Jocs ~/r/s/a/pages (devReno) [1]>
开发环境:
操作系统:darwin x64(Mac 操作系统:10.13.4)
Angular CLI:1.7.4
节点:9.11.1
角度:5.2.9
【问题讨论】:
-
有同样的问题。将 angular-cli 降级到 1.7.3 为我解决了问题。
-
它没有帮助我
-
约瑟夫,你的问题解决了吗?
标签: angular terminal command-line-interface angular-cli