Input Redirection / Piping into 'npm init' command not working

Aperta
#19 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, node.js
Ambito
cli

Direzione di ricerca

Start by reproducing the failure with npm init < sample_input and cat sample_input | npm init, using the sample input and output linked in the issue. Trace the entry point prompt handling, then verify that piped input completes npm init without crashing and run the project's available tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm trying to write a setup script that automatically runs and fills out the npm init prompts. It appears something is causing npm init to crash when I get to the entry point for the entry point.

Using this sample input file: https://gist.github.com/derekaug/d3c7cfc1fa7e6538de0e

When I run npm init < sample_input or cat sample_input | npm init, npm init crashes when it hits the entry point. See example output here: https://gist.github.com/derekaug/c0c1ace1e828e4c83f27

Lingua principale
JavaScript
Stelle
349
Fork
164
Merge medio
3g 17m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di npm/init-package-json

Tutte le issue di npm/init-package-json

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.