【问题标题】:can not execute ns build android无法执行ns build android
【发布时间】:2023-01-04 01:56:00
【问题描述】:

当我运行 ns build android 时,我得到了这个错误

并且 runSbg.log 为空

我只想获取 debug.apk。

my package.json`{
  "name": "pillconsfront",
  "main": "./src/main.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@angular/animations": "~15.0.0",
    "@angular/common": "~15.0.0",
    "@angular/compiler": "~15.0.0",
    "@angular/core": "~15.0.0",
    "@angular/forms": "~15.0.0",
    "@angular/platform-browser": "~15.0.0",
    "@angular/platform-browser-dynamic": "~15.0.0",
    "@angular/router": "~15.0.0",
    "@nativescript/angular": "~15.0.0",
    "@nativescript/core": "~8.4.0",
    "@nativescript/theme": "~3.0.2",
    "rxjs": "~7.5.0",
    "zone.js": "~0.11.5"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~15.0.0",
    "@angular/compiler-cli": "~15.0.0",
    "@nativescript/android": "8.4.0",
    "@nativescript/preview-cli": "1.0.2",
    "@nativescript/types": "~8.4.0",
    "@nativescript/webpack": "~5.0.12",
    "@ngtools/webpack": "~15.0.0",
    "typescript": "~4.8.4"
  }
}`

【问题讨论】:

    标签: android nativescript


    【解决方案1】:

    似乎是某个节点 OOM 错误。你可以试试:

    命令:

    set NODE_OPTIONS=--max-old-space-size=8192
    

    电源外壳:

    $env:NODE_OPTIONS="--max-old-space-size=8192"
    

    并再次运行命令

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-07-04
      • 2014-12-29
      • 1970-01-01
      • 1970-01-01
      • 2018-10-22
      • 2016-01-30
      • 1970-01-01
      相关资源
      最近更新 更多