本文介绍了找不到模块' @ schematics/angular/utility/project'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我离子产生组分xxx

发生未处理的异常:找不到模块'@ schematics/angular/utility/project'需要堆栈:

An unhandled exception occurred: Cannot find module '@schematics/angular/utility/project'Require stack:

  • /Users/user/develop/myapp/node_modules/@ionic/angular-toolkit/schematics/component/index.js

  • /Users/user/develop/myapp/node_modules/@ionic/angular-toolkit/schematics/component/index.js

/Users/user/develop/myapp/node_modules/@angular-devkit/schematics/tools/export-ref.js

/Users/user/develop/myapp/node_modules/@angular-devkit/schematics/tools/export-ref.js

/Users/user/develop/myapp/node_modules/@angular-devkit/schematics/tools/index.js

/Users/user/develop/myapp/node_modules/@angular-devkit/schematics/tools/index.js

/Users/user/develop/myapp/node_modules/@angular/cli/utilities/json-schema.js

/Users/user/develop/myapp/node_modules/@angular/cli/utilities/json-schema.js

/Users/user/develop/myapp/node_modules/@angular/cli/models/command-runner.js

/Users/user/develop/myapp/node_modules/@angular/cli/models/command-runner.js

/Users/user/develop/myapp/node_modules/@angular/cli/lib/cli/index.js

/Users/user/develop/myapp/node_modules/@angular/cli/lib/cli/index.js

/Users/user/develop/myapp/node_modules/@angular/cli/lib/init.js

/Users/user/develop/myapp/node_modules/@angular/cli/lib/init.js

/Users/user/develop/myapp/node_modules/@ angular/cli/bin/ng

/Users/user/develop/myapp/node_modules/@angular/cli/bin/ng

离子:

 Ionic CLI                     : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli)
 Ionic Framework               : @ionic/angular 5.2.3
 @angular-devkit/build-angular : 0.1000.2
 @angular-devkit/schematics    : 10.0.2
 @angular/cli                  : 10.0.2
 @ionic/angular-toolkit        : 2.2.0

电容器:

 Capacitor CLI   : 2.1.2
 @capacitor/core : 2.1.2

科尔多瓦:

 Cordova CLI       : 9.0.0 ([email protected])
 Cordova Platforms : android 8.1.0
 Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 7 other plugins)

实用程序:

 cordova-res : not installed
 native-run  : not installed

系统:

 ios-sim : 8.0.2
 NodeJS  : v12.18.1 (/usr/local/bin/node)
 npm     : 6.14.6
 OS      : macOS Catalina
 Xcode   : Xcode 11.5 Build version 11E608c

推荐答案

似乎与角度10 +

这对我有用

npm uninstall @schematics/angular
npm install @schematics/[email protected]

这篇关于找不到模块' @ schematics/angular/utility/project'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 04:53