commitizen / commitizen/cz-cli

Couldn't re-exec init when yarn failed on init

オープン
#707 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
17.5k
フォーク
566
平均マージ
8時間 16分
マージ済み PR(30日)
1

説明

```
root@syzoj-test-vm:~/syzoj-ng-app# commitizen init cz-conventional-changelog --yarn --dev --exact
Attempting to initialize using the npm package cz-conventional-changelog
yarn add v1.19.0
[1/4] Resolving packages...
[2/4] Fetching packages...
error Incorrect integrity when fetching from the cache
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
root@syzoj-test-vm:~/syzoj-ng-app# commitizen init cz-conventional-changelog --yarn --dev --exact
Attempting to initialize using the npm package cz-conventional-changelog
Error: Error: A previous adapter is already configured. Use --force to override
adapterConfig.path: ./node_modules/cz-conventional-changelog
repoPath: /root/syzoj-ng-app
CLI_PATH: /usr/local/share/.config/yarn/global/node_modules/commitizen/
installAdapterCommand: yarn add cz-conventional-changelog --dev --exact
adapterNpmName: cz-conventional-changelog
```

Only removing the new entries from `package.json` can I run the init command again.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、`commitizen init cz-conventional-changelog --yarn --dev --exact` コマンドを再現し、`package.json` に作成されるエントリ周辺の初期化フローを調査します。Yarn のインストールに失敗しても古い adapter 設定が残らず、同じ init コマンドを `package.json` を手動で編集せずに再実行できれば、修正は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。