npm ERR! could not determine executable to run not found husky-run
问题1
运行项目,报 not found husky-run
解决1
安装 husky 依赖
npm install husky@6 --save-dev \
&& npx husky-init \
&& npm exec -- github:typicode/husky-4-to-6 --remove-v4-config
问题2
运行项目,报 npm ERR! could not determine executable to run
解决2
注释以下文件
// .husky/pre-commit
#!/bin/sh
#. "$(dirname "$0")/_/husky.sh"
#npm test
参考
https://ask.csdn.net/questions/6910060
https://stackoverflow.com/questions/66246587/how-to-fix-error-not-found-husky-run-when-committing-new-code