【问题标题】:An unhandled exception occurred: Cannot find module '@schematics/angular/utility/project'发生未处理的异常:找不到模块“@schematics/angular/utility/project”
【发布时间】:2020-10-24 01:59:22
【问题描述】:

我在尝试创建组件时遇到了这个问题,我已经尝试安装这些:

npm install -D @angular/cli

npm i --save-dev @nativescript/schematics

但它们对我不起作用。

我真的不知道这种依赖关系的问题,以及为什么我的问题总是@schematics

我正在跑步: Angular 10.0.1 npm 6.14.5 nativescript 6.7.4

感谢您的帮助

enter image description here

【问题讨论】:

    标签: angular typescript frontend nativescript backend


    【解决方案1】:

    我认为@schematics/angular 10.0.1 存在问题,尝试了 9.1.0 并且对我有用。

    npm uninstall @schematics/angular
    npm install @schematics/angular@9.1.0
    

    【讨论】:

    • 漂亮,现在可以使用了,感谢@melo 的帮助。我将版本降级到这个版本并清理了缓存。 npm uninstall @schematics/angularnpm cache cleannpm install @schematics/angular@9.1.8
    • 尝试了不同的方法后,这很顺利
    猜你喜欢
    • 2022-06-23
    • 2021-05-02
    • 2021-06-17
    • 2020-11-05
    • 1970-01-01
    • 2021-09-16
    • 2021-02-03
    • 2020-01-21
    • 2021-06-05
    相关资源
    最近更新 更多