commitizen / commitizen/cz-cli

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

未关闭
#707 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。