Skip to content

No HUSKY_GIT_PARAMS not available #2339

Closed
@Manubi

Description

@Manubi

Hello,

I am trying to make commitlint work with husky v5 but I am getting the following error:
Error:
Error: Recieved 'HUSKY_GIT_PARAMS' as value for -E | --env, but environment variable 'HUSKY_GIT_PARAMS' is not available globally

package.json
"@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0" "husky": "^5.0.4",

commit-msg_—_impfi-frontend

thanks for the help!

UPDATE:

Fixed it with this:
`# .husky/pre-commit

...

npx --no-install commitlint --edit $1

or

yarn commitlint --edit $1`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions