【问题标题】:resource not found in collection @nestjs/schematics在集合@nestjs/schematics 中找不到资源
【发布时间】:2021-02-25 08:08:53
【问题描述】:

image with error

enter image description here

您好,我尝试使用 https://docs.nestjs.com/recipes/crud-generator,但我不知道为什么它不能在我的 CLI 中运行,它已更新

【问题讨论】:

  • 嗨@Jonathan,欢迎来到我们的社区!为了找到您的问题的解决方案,您需要提供更多详细信息,说明您想要实现什么,到目前为止您做了什么,以及您尝试过哪些没有奏效。请包括所有相关代码,而不是它的图像,因此,如果有人有时间对其进行测试,可以轻松复制/粘贴它。永远记住,有人会来找你的问题,为你遇到的同样的问题寻找解决方案

标签: node.js angular nestjs


【解决方案1】:

你需要输入nest g resource module-name。去掉 npx 部分

【讨论】:

    【解决方案2】:

    你必须更新包@nestjs/schematics使用npm i @nestjs/schematics

    【讨论】:

      猜你喜欢
      • 2018-10-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多