commitizen / commitizen/cz-cli

PNPM support is broken

Offen
#994 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
17.5k
Forks
566
Ø Merge
8 Std. 16 Min.
Gemergte PRs (30 T.)
1

Beschreibung

Running `commitizen init cz-conventional-changelog --pnpm --save-dev --save-exact` gives me this output:

```
Attempting to initialize using the npm package cz-conventional-changelog
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

npm ERR! A complete log of this run can be found in: /home/thelinuxlich/.npm/_logs/2024-05-20T13_29_22_244Z-debug-0.log
Error: Command failed: npm install cz-conventional-changelog --save-dev
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

npm ERR! A complete log of this run can be found in: /home/thelinuxlich/.npm/_logs/2024-05-20T13_29_22_244Z-debug-0.log

at checkExecSyncError (node:child_process:890:11)
at Object.execSync (node:child_process:962:15)
at init (/usr/local/lib/node_modules/commitizen/dist/commitizen/init.js:1017:28)
at Object.bootstrap (/usr/local/lib/node_modules/commitizen/dist/cli/commitizen.js:34:30)
at Object. (/usr/local/lib/node_modules/commitizen/bin/commitizen.js:2:38)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12) {
status: 1,
signal: null,
output: [
null,
,

],
pid: 9285,
stdout: ,
stderr:
}
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit dem in `dist/commitizen/init.js` gezeigten `init`-Pfad und dem CLI-Einstiegspunkt in `dist/cli/commitizen.js`, und reproduzieren Sie anschließend `commitizen init cz-conventional-changelog --pnpm --save-dev --save-exact`. Verfolgen Sie, warum der Befehl trotz `--pnpm` npm aufruft; als erledigt gilt die Aufgabe, wenn derselbe Initialisierungsbefehl ohne den nicht unterstützten `workspace:`-Fehler abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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