commitizen / commitizen/cz-cli

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

Ouverte
#707 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
17.5k
Forks
566
Merge moyen
8 h 16 min
PR mergées (30 j)
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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.