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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -