I\'m just starting to look into Git hooks, but I can\'t seem to get them to run.
I set up a local repository, so there is now a \'.git\' directory in my project folder.
in my case where i did npm install & accidentally deleted .git folder, npm install pre-commit --save worked
npm install
npm install pre-commit --save