Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

ionic build: Error in subprocess stdout pipe: Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd

Offen
#3,376 7 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
nodejs, typescript
Bereich
cli

Rechercherichtung

Beginne damit, den Fehler mit ionic build --prod --verbose zu reproduzieren, und verfolge die in der Ausgabe angezeigten stdout- und stderr-Pipes des ionic build-Subprozesses. Die Aufgabe ist erledigt, wenn der Produktions-Build ohne die Fehler ERR_STREAM_WRITE_AFTER_END abgeschlossen wird und der Subprozess nicht mit Code 1 beendet wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

triage

Description:
I'm getting the following error when I run ionic build --prod

Output:

ionic build --prod --verbose
  ionic:cli-utils Terminal info: { tty: true, ci: false } +0ms
  ionic:cli-utils CLI global options: { _: [ 'build' ], help: false, h: false, verbose: true, quiet: false, interactive: true, color: true, confirm: false, json: false, prod: true, project: null, '--': [] } +268ms
  ionic:cli-utils:lib:environment Environment open. +0ms
  ionic:cli-utils:lib:project Project type from config: ionic/angular 4 (angular) +0ms
  ionic:cli-utils Project name: undefined +11ms
  ionic:cli Context: { binPath: '/usr/lib/node_modules/ionic/bin/ionic', libPath: '/usr/lib/node_modules/ionic', execPath: '/mnt/c/Users/marce/Documents/Code/xCode/lingusocial-ionic-v4', version: '4.0.0-rc.11' } +0ms
  ionic:cli-utils:lib:hooks Looking for ionic:build:before npm script. +0ms
  ionic:cli-utils:lib:project:angular:build Looking for ionic:build npm script. +0ms
> ng run app:build:production

Date: 2018-07-22T10:20:52.876Z
Hash: f05c78487b891411c436
Time: 13139ms
chunk {0} runtime.a66f828dca56eeb90e02.js (runtime) 1.05 kB [entry] [rendered]
chunk {1} styles.0dd73f3f0a0fd9c590d8.css (styles) 15.1 kB [initial] [rendered]
chunk {2} polyfills.207dcc605630215505f5.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} main.f58b96bf9bf614ca37d4.js (main) 128 bytes [initial] [rendered]
  ionic:cli-utils:lib:shell Error in subprocess stdout pipe: Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd (_stream_writable.js:241:12) at Object.Writable.write (_stream_writable.js:291:5) at Readable.write (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:855:33) at DestroyableTransform.ondata (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:619:20) at DestroyableTransform.emit (events.js:180:13) at addChunk (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:291:12) at readableAddChunk (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:278:11) at DestroyableTransform.Readable.push (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:245:10) at DestroyableTransform.Transform.push (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_transform.js:148:32) at push (/usr/lib/node_modules/ionic/node_modules/split2/index.js:52:10) +0ms
  ionic:cli-utils:lib:shell Error in subprocess stderr pipe: Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd (_stream_writable.js:241:12) at Object.Writable.write (_stream_writable.js:291:5) at Readable.write (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:855:33) at DestroyableTransform.ondata (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:619:20) at DestroyableTransform.emit (events.js:180:13) at addChunk (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:291:12) at readableAddChunk (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:278:11) at DestroyableTransform.Readable.push (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_readable.js:245:10) at DestroyableTransform.Transform.push (/usr/lib/node_modules/ionic/node_modules/readable-stream/lib/_stream_transform.js:148:32) at push (/usr/lib/node_modules/ionic/node_modules/split2/index.js:52:10) +1ms
[ERROR] An error occurred while running subprocess ng.

        ng run app:build:production exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.
  ionic:cli-framework:utils:process onBeforeExit handler: process.exit received +0ms
  ionic:cli-framework:utils:process onBeforeExit handler: running 1 queued functions +0ms
  ionic:cli-framework:utils:process onBeforeExit handler: exiting (exit code 1) +1ms

My ionic info:


Ionic:

   ionic (Ionic CLI)          : 4.0.0-rc.11 (/usr/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-alpha.11
   @angular-devkit/core       : 0.7.0-rc.2
   @angular-devkit/schematics : 0.7.0-rc.2
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0-rc.11
   @ionic/schematics-angular  : 1.0.0-rc.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none

System:

   NodeJS : v9.11.2 (/usr/bin/node)
   npm    : 6.2.0
   OS     : Linux 4.4

Environment:

   ANDROID_HOME : not set

Other Information:

Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
681
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ionic-team/ionic-cli

Alle Issues in ionic-team/ionic-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.