运行命令npm run ngcc
会引发错误'ngcc' is not recognized as an internal or external command
。
package.json
{
"scripts": {
"ngcc": "ngcc"
...
},
"dependencies": {
"@angular-extensions/elements": "^9.3.0",
"@angular/animations": "~9.1.0",
"@angular/common": "~9.1.0",
"@angular/compiler": "~9.1.0",
"@angular/core": "~9.1.0",
"@angular/elements": "~9.1.0",
"@angular/forms": "~9.1.0",
"@angular/platform-browser": "~9.1.0",
"@angular/platform-browser-dynamic": "~9.1.0",
"@angular/router": "~9.1.0",
...
}
}
anuglar-compiler 和其他包的版本是否有任何不匹配?无法找到问题的根本原因。有人可以帮忙吗?