commitizen / commitizen/cz-cli
Couldn't re-exec init when yarn failed on init
- Dominant language
- JavaScript
- Stars
- 17.5k
- Forks
- 566
- Avg merge
- 8h 16m
- Merged PRs (30d)
- 1
Description
```
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.
Contributor guide
Assessment
This issue has not been assessed yet.