问题描述
只是在 Angular 中创建组件并收到以下错误,我认为 Angular mismatch version 是警告而不是错误,我也尝试并删除了 package-lock.json 和 node_modules。
λ ng g component libs\layout\src\lib\features\footer
Your global Angular CLI version (11.2.6) is greater than your local version (11.0.7). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
TypeError: Cannot read property 'match' of undefined
at noCachenormalize (...\nrwl\node_modules\@angular-devkit\core\src\virtual-fs\path.js:207:14)
at Object.normalize (...\nrwl\node_modules\@angular-devkit\core\src\virtual-fs\path.js:189:21)
at Object.parseName (...\nrwl\node_modules\@nrwl\angular\node_modules\@schematics\angular\utility\parse-name.js:15:56)
at ...\nrwl\node_modules\@nrwl\angular\node_modules\@schematics\angular\component\index.js:96:41
Cannot read property 'match' of undefined
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)