commitlint icon indicating copy to clipboard operation
commitlint copied to clipboard

prompt: causes nvm warnings about $PRESET

Open Tapppi opened this issue 8 years ago • 2 comments

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

Tapppi avatar Feb 06 '18 16:02 Tapppi

Could you provide some more detail, as: When is this happening exactly - during startup, while entering messages, when exiting?

marionebl avatar Feb 15 '18 19:02 marionebl

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.

fahrradflucht avatar Mar 11 '18 09:03 fahrradflucht