Skip to content

Commit 3f19f5b

Browse files
committed
docs: add npx husky add workaround on Windows
1 parent e134db1 commit 3f19f5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ For example:
7676
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
7777
```
7878

79+
_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._
80+
7981
## Manual
8082

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

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

135+
_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._
136+
133137
### Uninstall
134138

135139
```shell

0 commit comments

Comments
 (0)