创建带有angular / cli的组件时出现问题

时间:2018-09-03 15:07:38

标签: angular

我正在尝试使用此命令创建一个带有angular / cli的组件,并且收到此错误消息:

ng generate component cursos
Cannot read property '0' of null

我试图卸载angular / cli,angular,并且我也遵循了这个其他线程Error generating components with Angular CLI: Cannot read property '0' of null ,但是什么也没有。如果我写一个ng --version,我有这个:

Angular CLI: 6.1.5
Node: 10.9.0
OS: win32 x64
Angular: 6.1.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.5
@angular-devkit/build-angular     0.7.5
@angular-devkit/build-optimizer   0.7.5
@angular-devkit/build-webpack     0.7.5
@angular-devkit/core              0.7.5
@angular-devkit/schematics        0.7.5
@angular/cli                      6.1.5
@ngtools/webpack                  6.1.5
@schematics/angular               0.7.5
@schematics/update                0.7.5
rxjs                              6.3.0
typescript                        2.7.2
webpack                           4.9.2

能否请你帮我猜为什么我有这个错误?非常感谢

0 个答案:

没有答案