LoginSignup
22
7

More than 3 years have passed since last update.

[memo] Huskyのエラーでgit commit できない問題

Last updated at Posted at 2019-05-16

背景

husky@^1.3.1 を使う時、git commitを実行すると以下のエラーが出てきました。

test(master): git commit

husky > pre-commit (node v8.11.4)
/bin/sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)

解決

以下のコマンドで解決できました。

rm -rf .git/hooks/
npm i -D husky

lint-staged がインストールされてなかったため

22
7
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
7