commitizen / commitizen/cz-cli
NPM warning breaks `cz` prompts when using `scripts` entry
- Lingua principale
- JavaScript
- Stelle
- 17.5k
- Fork
- 566
- Merge medio
- 8h 16m
- PR unite (30g)
- 1
Descrizione
When running commands from `scripts`, any NPM warnings seem to break `cz` prompts.
For example, running `npm run commit` (which runs `git-cz`) triggers some NPM warnings in my environment that then break the `cz` prompts. The same warnings are triggered by `npx cz` but the prompt continues to work normally. Using `yarn` to run the `script` (`yarn run commit`) also works normally.
The given error is caused by the Flatpak `vscodium` environment. The error is:
```bash
npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
npm WARN config location in the cache, and they are managed by
npm WARN config [`cacache`](http://npm.im/cacache).
```
I can't remove the entry `tmp` in `/app/etc/npmrc` given that file is read-only in the `vscodium` Flatpak.
For now it's easy to use `npx git-cz` or `yarn run git-cz`. This may not even be a direct issue with `git-cz` but instead `npm`, `node`, or my shell environment. But I thought I'd share in case anyone else comes across this annoyance.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo `npm run commit` e `npx cz` nell’ambiente Flatpak segnalato, confrontando il comportamento del prompt di `git-cz` quando viene emesso l’avviso di npm. Traccia la voce `scripts` e determina se la correzione appartiene a cz-cli, npm, Node o all’ambiente shell; il lavoro è concluso quando il prompt rimane utilizzabile con l’avviso presente oppure il problema viene identificato chiaramente come esterno.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100