Problem when trying to add Prettier's Git Hook: husky install error `install command is deprecated`

8k Views Asked by At

node version: 20.11.0 pnpm version: 8.15.0 os: Windows

I was following the instructions in https://prettier.io/docs/en/install.html

  • I ran the second command pnpm exec husky install and
  • cmd gives me an ERROR message "install command is deprecated"

Is there a problem with husky? How to setup prettier git hook?

Thanks for help

1

There are 1 best solutions below

2
Phil On

From the husky v9.0.1 changelog

Removed husky install. Use husky or husky some/dir for the same functionality (deprecation notice to be added).