我在整理项目时遇到问题。每次我使用“ ng lint”时,都会出现以下错误:
$ ng lint
Linting "app"...
An unhandled exception occurred: Maximum call stack size exceeded
See "C:\Users\6100BR~1\AppData\Local\Temp\ng-owDTzM\angular-errors.log" for further details.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
但是,如果我尝试运行该应用程序或尝试对其进行构建,那么一切对我来说都很好。
版本:
任何想法如何解决此问题,或者是否有办法找到更易理解的错误?
您可以像这样将脚本添加到package.json
:
"scripts": {
"lint": "node --max_old_space_size=8192 --harmony node_modules/@angular/cli/bin/ng lint"
}
并执行:
npm run lint