From df8bcbd22d631bba471b6db226b0e5d3d81ef54e Mon Sep 17 00:00:00 2001 From: Buddy John Date: Thu, 16 Feb 2023 14:27:11 +0800 Subject: [PATCH] fix(husky): Prevent the verify error on commit. (#10536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If I initial my project by execute: pnpm install (not the npm install), Then use git commit, it'll always result an error: ✔ Preparing... ✔ Running tasks... ✔ Applying modifications... ✔ Cleaning up... npm ERR! could not determine executable to run npm ERR! A complete log of this run can be found in: husky - commit-msg hook exited with code 1 (error) so I add a missed dev-depency: @umijs/facrib, It's solved. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8f0b0a6d..d23d67c4 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@types/react-helmet": "^6.1.5", + "@umijs/facrib": "^2.14.1", "@umijs/lint": "^4.0.34", "@umijs/max": "^4.0.33", "cross-env": "^7.0.3",