尝试使用https://github.com/endel/regene-memory-limit增加大小限制,但仍然无法构建。我需要更改node_modules中的任何地方吗?
10%构建模块6/8模块2活动...\bootstrap\dist\css\bootstrap 90%块资产处理<---最后几个GCs--->
174152 ms:标记-扫描1266.2(1435.6)->1265.2(1435.6)MB,934.7/0.0ms[分配失败][请求旧空间中的GC]。175021 ms:标记-扫描1265.2(1435.6)->1265.2(1435.6)MB,869.8/0.0ms[分配失败][请求旧空间中的GC]。175964毫秒:标记-扫描1265.2(1435.6)->1267.9(1410.6)MB,942.4/0.0ms[最后手段气相色谱]。176889 ms:标记-扫描1267.9(1410.6)->1271.4(1410.6)MB,924.1/0.0ms[最后手段气相色谱]。
<---JS StackTrace--->
=====JS栈迹===================================================================
安全上下文:0000011C7D03FA99 1:getLast(又名getLast)[E:\projects\nila公司\memarane\front-end\node_modules\escop\lib\pattern-visitor.js:~45][PC=000002C336273aa1](this=0000011C7D004241,xs=0000037217E78589,xs=0000037217E78589)2:标识符[E:\projects\nila公司00037217E78539
我的依赖项是:
"dependencies": {
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"@mm2/bsmodal": "^1.0.1",
"@ng-bootstrap/ng-bootstrap": "1.0.0-beta.5",
"@ngu/carousel": "^1.4.2",
"angular-froala-wysiwyg": "^1.0.0",
"angular-popper": "^1.0.0-beta-1",
"angular2-jwt": "^0.2.3",
"animate.css": "^3.5.2",
"aos": "^2.2.0",
"bootstrap": "4.0.0-beta.2",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"hammerjs": "^2.0.8",
"jalali-moment": "^2.1.8",
"jquery": "^3.2.1",
"ng2-completer": "^1.6.1",
"ng2-datepicker-jalali": "^1.0.9",
"ng2-scroll-to-el": "^1.0.0",
"ngx-carousel": "^1.3.1",
"ngx-cookie-service": "^1.0.9",
"ngx-progressbar": "^2.1.1",
"ngx-quill": "^1.6.0",
"ngx-quill-editor": "^2.2.2",
"popper.js": "^1.12.9",
"rxjs": "^5.4.1",
"wowjs": "^1.1.3",
"zone.js": "^0.8.14"
},
"devDependencies": {
"@angular/cli": "^1.6.1",
"@angular/compiler-cli": "^4.0.0",
"@angular/language-service": "^4.0.0",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/jquery": "^3.2.16",
"@types/node": "~6.0.60",
"codelyzer": "~3.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.3.3"
}
我在Ionic3单元测试中也面临同样的问题。
npm试验
在上面的命令中得到内存问题,然后用下面的命令修复了它--
我有一个Vue应用程序。当为该应用程序运行时,它失败了,错误为“致命错误:CALL_AND_RETRY_LAST Allocation failed-JavaScript heap out of memory” 不显示任何错误 我已经尝试使用--max_old_space_size,但它不起作用。
我想在angular 2中创建build,我写了 命令,并得到以下错误。 我还在我项目中尝试了以下命令: 并得到以下错误: 错误:eNoent:没有这样的文件或目录,lstat'tsconfig-aot.json'的错误(本机)位于object.main(/root/desktop/rc1-dev/client/node_modules/@angular/tsc-wrapped/src/main.
我在运行应用程序时遇到gradle生成错误。我使用的是8GB内存的windows 10,Android studio 4.0.1版 内存不足:Java堆空间。请在项目的Gradle中为Gradle分配更多内存。属性文件。例如,下面的一行,在渐变中。属性文件,将最大Java堆大小设置为1024 MB:org。格雷德尔。jvmargs=-Xmx1024m 即使遵循相同的步骤,我也无法运行该应用程序。有
问题内容: 运行时出现以下错误: 严重错误:CALL_AND_RETRY_LAST分配失败-JavaScript堆内存不足 有没有办法全局增加node.js内存限制? 问题答案: 您可以使用以下命令启动NPM: 如所描述的在这里,默认为4000(4GB)。
安全上下文:000001af8a2cfb61 2:/*匿名*/[C:\project_folder\node_modules\source-map\lib\source-node.js:100][pc=0000016e99866533](this=00000346870554e1,mapping=000003c18fdc93c9)3:参数适配器框架:3->1 4:InnerArrayForEach