简体   繁体   English

'ngcc' 未被识别为内部或外部命令

[英]'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.

相关问题 '.' 不被识别为内部或外部命令? - '.' is not recognized as internal or external command? ng 未被识别为内部或外部命令 - ng is not recognized as an internal or external command Angular教程未将“ ng”识别为内部或外部命令 - 'ng' is not recognized as an internal or external command, Angular tutorial Angular2:并发不被识别为内部或外部命令 - Angular2 : concurrent is not recognized as internal or external command ng help - 'ng' 不被识别为内部或外部命令 - ng help - 'ng' is not recognized as an internal or external command Angular初学者错误:tsc无法识别为内部或外部命令…(Webstorm - Angular beginner error: tsc is not a recognized as an internal or external command… (Webstorm 在 Windows 64 位系统上,'ng' 不被识别为内部或外部命令 - 'ng' is not recognized as an internal or external command, on windows 64 bit system “量角器”不被识别为内部或外部命令,可操作程序或批处理文件 - 'protractor' is not recognized as an internal or external command, operable program or batch file 'ng' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'ng' is not recognized as an internal or external command, operable program or batch file 'concurently' 不是内部或外部命令,也不是可运行的程序 或批处理文件 - 'concurently' is not recognized as an internal or external command, operable program or batch file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM