angular-cli - 每当我运行 npm run ng build-hin 时,我都会遇到错误

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/

相关文章:

python - DBSCAN 聚类甚至无法处理 40k 数据,但可以使用 python 和 skl

ios - UIView 作为@EnvironmentObject 的订阅者

javascript - 如何使用 React 在客户端裁剪图像而不丢失分辨率

java - SonarQube Scanner - 插件下载之间的长时间停顿

r - 在 Windows 上安装 odbc R 包时出现问题

reactjs - 应用多个动态过滤器

vue.js - 当对象没有(可识别的)变化时触发 Vue 监视

rust - 我如何使字符串比闭包体生命周期更长?

android - 使用 Moshi 处理错误响应

javascript - Angular ngrx : TypeError: Cannot free