Skip to content

Commit

Permalink
docs: add npx husky add workaround on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored and nikoladavitkovski committed Sep 5, 2022
1 parent 79c5c88 commit 26b6bf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ For example:
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
```

_For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/.bin/husky add ...` instead. This isn't an issue with husky code._

## Manual

### Install
Expand Down Expand Up @@ -130,6 +132,8 @@ If `npm test` command fails, your commit will be automatically aborted.

!> **Using Yarn to run commands? There's an issue on Windows with Git Bash, see [Yarn on Windows](/?id=yarn-on-windows).**

_For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/.bin/husky add ...` instead. This isn't an issue with husky code._

### Uninstall

```shell
Expand Down

0 comments on commit 26b6bf4

Please sign in to comment.