- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在尝试使用 AOT 构建我的 angular-cli 项目
ng build --aot
但它因错误而失败
"FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory"
如果我使用 --prod
标志进行构建,也会发生同样的事情。
有什么想法吗?
最佳答案
github 上已经有一个问题:https://github.com/angular/angular-cli/issues/5618
同时,作为解决方法,您可以尝试指定 max_old_space_size
设置(以 MB 为单位)
node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --prod
关于node.js - Angular-cli AOT 构建失败,出现 "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49230139/
fatal error :CALL_AND_RETRY_LAST 分配失败 - JavaScript 堆内存不足 1: Node::中止()2:0x10a03cc3:v8::Utils::Report
当调用我的 gulp 任务之一时,我得到“ fatal error :CALL_AND_RETRY_LAST 分配失败 - 进程内存不足”。 我在 this question 中找到我可以将参数传递给
我遇到了这个问题...我使用的是 Windows 7 和 Chrome。 我尝试过这个解决方案: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed
要下载为 csv 文件,我不知道是什么问题,当用户有 40,000 条记录时它工作正常,当我试图访问 api(80,000 条记录)时它的显示过程内存不足。请帮我解决这个问题 app.get('/
我无法使用 npm 进行任何搜索: npm search material ..结果出现以下错误: npm WARN Building the local index for the first ti
Node 版本为v0.11.13 根据 sudo top 崩溃期间的内存使用量不会超过 3% 重现此错误的代码: var request = require('request') var nodedu
我正在使用 Ionic 为 Android 构建,但我总是收到此错误: 我从 ionic info 那里得到了这个: 别搞错了,我已经浏览了整个互联网寻找解决方案,但我没有成功。 我已经看到并阅读了以
我正在运行一个脚本,使用 NodeJS 0.12.4、Protractor 2.1.0 自动登录网页,我的系统是 Win 8.1、i7 2.5 GHz、16 GB RAM,所以我认为不太可能我的内存用
我在运行 ng build --prod 时遇到此错误 92% chunk asset optimization [4136:0155D210] 443646 ms: Mark-sweep 703.
尝试在 angular2 应用程序中将 devextreme 版本 16.1.7 升级到 16.2.4。 'npm build' 失败并出现错误 'FATAL ERROR: CALL_AND_RETR
从上周开始,在生产环境中,我经常遇到 fatal error :CALL_AND_RETRY_LAST 分配失败 - JavaScript 堆内存不足。 我尝试增加 HEAP 大小,但没有成功。由于它
有时会出现此错误。
我正在使用 meteor 。我使用 meteor build 构建我的应用程序。然后我尝试用 pm2 运行它MONGO_URL=mongodb://localhost:27017/btctestdb
我刚刚在 Windows 10 上安装了 npm 3.10.3 和 nodejs v6.3.1,当我第一次使用 npm 进行搜索时,几分钟后我收到了这条消息: PS C:\Users\ToOoA> n
我运行my script使用webfont在包含 41214 SVG 文件的目录中,出现以下错误 function buildFont(config) { return webfont({
在运行 Angular 2 AOT rollup 时我遇到了上述问题 144518 ms: Mark-sweep 1317.0 (1404.4) -> 1317.0 (1404.4) MB, 1
npm run build 在本地运行时完美运行。 但是 travis-ci 总是远程失败并每次都会报告以下错误: fatal error :CALL_AND_RETRY_LAST 分配失败 - Ja
我正在尝试使用 AOT 构建我的 angular-cli 项目 ng build --aot 但它因错误而失败 "FATAL ERROR: CALL_AND_RETRY_LAST Allocation
我在 react 和使用 storybook 和 webpack 时遵循依赖关系和大量组件, "@storybook/react": "5.0.6", "styled-components": "5.
构建突然开始失败,并出现以下错误: 2019-01-03T12:57:22.2223175Z EXEC : FATAL error : CALL_AND_RETRY_LAST Allocation f
我是一名优秀的程序员,十分优秀!