commitlint
commitlint copied to clipboard
prompt: causes nvm warnings about $PRESET
For some reason prompt is setting PRESET variable, which causes nvm to yell out.
Expected Behavior
No nvm warnings when running prompt.
Current Behavior
Running prompt with nvm installed node prints out warnings:
nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
Affected packages
- [ ] cli
- [ ] core
- [x] prompt
- [ ] config-angular
Could you provide some more detail, as: When is this happening exactly - during startup, while entering messages, when exiting?
Can reproduce
❯ footer: :skip
nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
husky > npm run -s commitmsg (node v9.8.0)
⧗ input: test(scope): REMOVE
✖ subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]
✖ found 1 problems, 0 warnings
husky > commit-msg hook failed (add --no-verify to bypass)
So it looks like it is happening after the commit message is composed but before linting it.