简体   繁体   English

指定生成器名称(例如,nx generate @nrwl/workspace:library)--Angular

[英]Specify the generator name (e.g., nx generate @nrwl/workspace:library)--Angular

I am learning web develoment.我正在学习网络开发。 In angular, I am trying to generate a new component but there's an error Specify the generator name (eg, nx generate @nrwl/workspace:library) after I write ng generate component homeimgs在 Angular 中,我正在尝试生成一个新组件,但是在我编写ng generate component homeimgs之后Specify the generator name (eg, nx generate @nrwl/workspace:library)出现错误

How do I solve this error?我该如何解决这个错误?

Here is the picture of the same这是相同的图片

如果您使用的是 Nx,请尝试在 CLI 中使用此命令:

nx g @nrwl/angular:component *componentName* --project=*projectName*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复 spawn ENAMETOOLONG 错误 nrwl nx 工作区 - How to fix spawn ENAMETOOLONG error nrwl nx workspace NX 工作区,如何使用 cli 更改 Angular 应用程序名称? - NX workspace, how to change an Angular app name with the the cli? @schematics/angular:library VS @nrwl/angular:library - @schematics/angular:library VS @nrwl/angular:library Angular 9 - js 脚本不工作(例如基础或引导程序) - Angular 9 - js scripts not working (e.g. foundations or bootstrap) 处理Redux状态的函数的名称(例如,缩减器和选择器) - Name for functions that deal with Redux state (e.g. reducers and selectors) 如何指定类构造函数的返回类型(例如使用代理)? - How to specify return type of class constructor (e.g. using proxy)? 如何生成特定颜色的随机阴影列表? (例如橙色的随机阴影) - How can I generate a list of random shades of a particular color? (e.g. random shade of orange) 从Angular外部更改Angular2材质组件(例如选择控制器) - Change Angular2 Material Component ( e.g. Select controller ) outside from Angular 如何从非角度上下文(例如D3事件)触发角度变化? - How to trigger an angular change from a non-angular context e.g. from a D3 event? 如何从需要构建步骤的 github 安装 npm package,例如在分叉库时? - How to install a npm package from github requiring a build step, e.g. when forking a library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM