node.js - Ubuntu 16.04 pre-commit instalation causing an error -


i have tried set pre-commit hook , have installed https://www.npmjs.com/package/git-pre-commit on ubuntu 16.04 , when commiting have error cannot fixed:

.git/hooks/pre-commit: 9: [: %path%: unexpected operator /usr/bin/env: ‘node’: no such file or directory 

i have installed node package manager , tried fix error based on https://github.com/animetosho/nyuu/issues/14 without success. have tried uninstall git-pre-commit , remove error still here.

just mention node , npm functioning prior this.

would if narrow down causing this.

thanks.

it seems error in pre-commit.sample in https://www.npmjs.com/package/git-pre-commit have deleted , install https://www.npmjs.com/package/pre-commit.

error gone. if has same experience.


Comments

Popular posts from this blog

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -

python - What's the Pythonic way to report nonfatal errors in a parser? -

python - AssertionError when trying to assert return value from two dictionaries with py.test -