build": "ng build",
"build-en": "ng build --output-path=dist/en --base-href=.",
"build-hin": "ng build --output-path=dist/hin --configuration=hin --base-href=.",
"build-ar": "ng build --output-path=dist/ar --configuration=ar --base-href=.",
我的命令:npm run ng build-hin
不仅是 hin,而且适用于每种语言构建。
错误:
Localized bundle generation failed: Call retries were exceeded npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! empyreal-iot@0.0.0 build-hin:
ng build --output-path=dist/hin --configuration=hin --base-href=.
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the empyreal-iot@0.0.0 build-hin script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\devangams\AppData\Roaming\npm-cache_logs\2020-06-25T15_09_31_671Z-debug.log
最佳答案
这是一个老问题,但我在节点 10 上遇到了同样的问题。更新到节点 12 为我解决了这个问题
关于angular-cli - 每当我运行 npm run ng build-hin 时,我都会遇到错误并且构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62578683/