Skip to content

Commit

Permalink
docs: npm requirement on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Feb 18, 2021
1 parent 7180418 commit a8ac8c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/README.md
Expand Up @@ -72,12 +72,14 @@ yarn husky install

## Add a hook

To add a hook, you can use `husky add <file> [cmd]` (don't forget to run `husky install` before).
To add a hook, use `husky add <file> [cmd]` (don't forget to run `husky install` before).

```shell
npx husky add .husky/pre-commit "npm test"
```

_Requires npm v7.4+ on Windows_

Try to make a commit

```shell
Expand Down

0 comments on commit a8ac8c0

Please sign in to comment.