[英]'ngcc' not recognized as internal or external command
Running command npm run ngcc
throws the error 'ngcc' is not recognized as an internal or external command
.运行命令
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",
...
}
}
Is there any mismatch in the version of anuglar-compiler and other packages? anuglar-compiler 和其他包的版本是否有任何不匹配? Not able to find the root cause of the issue.
无法找到问题的根本原因。 Can someone please help?
有人可以帮忙吗?
Have you tried running "npm ci"?你试过运行“npm ci”吗? It fixed the problem for me, it seems my cli was not correctly installed.
它为我解决了这个问题,看来我的 cli 安装不正确。 https://preview-docs.npmjs.com/cli-commands/npm-ci
https://preview-docs.npmjs.com/cli-commands/npm-ci
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.