Cli: [BUG] npm run ist unterbrochen

Erstellt am 23. Aug. 2020  ·  3Kommentare  ·  Quelle: npm/cli

Aktuelles Verhalten:

$ npx -qp [email protected] -c 'npm run'
start:webpack-dev-server --open
build:NODE_ENV=production webpack -p

$ npx -qp [email protected] -c 'npm run'
npm timing config:load:defaults Completed in 1ms
...
npm timing npm:load Completed in 25ms
npm run-script <command> [-- <args>]

aliases: run, rum, urn
npm timing npm Completed in 155ms

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ahu/.npm/_logs/2020-08-23T00_18_04_815Z-debug.log

Erwartetes Verhalten:

$ npx -qp [email protected] -c 'npm run'
start:webpack-dev-server --open
build:NODE_ENV=production webpack -p

Schritte zum Reproduzieren:

  1. npx -qp [email protected] -c 'npm run'

Umgebung:

  • Betriebssystem: macOS Catalina 10.15.6
  • Knoten: 12.18.3
  • npm: 6.14.6
  • npx: 6.14.6
Bug Needs Triage Release 7.x

Alle 3 Kommentare

Grundursache: https://github.com/npm/config/issues/2

Wir sollten env-Werte von '' überspringen, anstatt sie in das Konfigurationsobjekt einzufügen.

Unterscheidet sich die leere Zeichenfolge nicht von nicht gesetzt?

Es ist, aber leider hat npm 6 diese Unterscheidung nicht angemessen respektiert.

In der letzten Beta behoben.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen