Troubleshooting
git pre-commit hook/husky
If running git commit shows the following:
husky > pre-commit (<node_version>)
error Command "install-if-no-packages" not found.
husky > pre-commit hook failed (add --no-verify to bypass)
Solution:
- remove all instances of
node_modulefolder (if present):
cd <repo_root>test/e2e
find . -name 'node_modules' type -d -prune
rm -rf node_modules
- return to the and install all dependencies from there:
yarn install
Once complete, running git commit should no longer trigger the git pre-commit hook error.