the default access mode of node_modules/pre-commit/hook file is -rw-r--r-- , and when i exec commit operation, it just show me one line of message , which is:
error message .git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: Permission denied
I've tried exec change mode of the node_modules/pre-commit/hook file to 777 roughly。 Fortunately, it WORKS。 However, i don't think it's the right way to fix this problem.
the default access mode of
node_modules/pre-commit/hook
file is-rw-r--r--
, and when i exec commit operation, it just show me one line of message , which is:error message
.git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: Permission denied
I've tried exec change mode of the
node_modules/pre-commit/hook
file to 777 roughly。 Fortunately, it WORKS。 However, i don't think it's the right way to fix this problem.