title: Can't commit. Pre-commit hook failed. Getting: sh: 1: grunt: not found
body: <p><strong>Problem:</strong></p>
  
  <p>Every time I try to commit changes I'm getting  previously unseen error.</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>&gt; jquery@3.2.1 precommit /home/usr1/-/-/-/node_modules/jquery
  &gt; grunt lint:newer
  
  sh: 1: grunt: not found
  
  npm ERR! Linux 4.8.0-56-generic
  npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "precommit"
  npm ERR! node v4.2.6
  npm ERR! npm  v3.5.2
  npm ERR! file sh
  npm ERR! code ELIFECYCLE
  npm ERR! errno ENOENT
  npm ERR! syscall spawn
  npm ERR! jquery@3.2.1 precommit: `grunt lint:newer`
  npm ERR! spawn ENOENT
  npm ERR! 
  npm ERR! Failed at the jquery@3.2.1 precommit script 'grunt lint:newer'.
  npm ERR! Make sure you have the latest version of node.js and npm installed.
  npm ERR! If you do, this is most likely a problem with the jquery package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     grunt lint:newer
  npm ERR! You can get information on how to open an issue for this project with:
  npm ERR!     npm bugs jquery
  npm ERR! Or if that isn't available, you can get their info via:
  npm ERR!     npm owner ls jquery
  npm ERR! There is likely additional logging output above.
  
  npm ERR! Please include the following file with any support request:
  npm ERR!     /home/usr1/practice/web/IgorVit/node_modules/jquery/npm-debug.log
  
  husky - pre-commit hook failed (add --no-verify to bypass)
  </code></pre>
  
  <p><strong>Descripltion:</strong></p>
  
  <p>I'm using webpack to bundle project, npm for package management.
  Here is my <code>package.json</code> file:</p>
  
  <pre><code>{
    "name": "typescript-react-webpack",
    "scripts": {
      "build": "webpack"
    },
    "devDependencies": {
      "react-dom": "^15.6.1",
      "react-router-dom": "^4.1.1",
      "ts-loader": "^2.2.0",
      "typescript": "^2.3.4",
      "webpack": "^3.0.0"
    },
    "dependencies": {
      "@types/jquery": "^3.2.5",
      "@types/node": "^8.0.10",
      "@types/react-dom": "^15.5.1",
      "@types/react-redux": "^4.4.45",
      "@types/react-router": "^4.0.11",
      "@types/react-router-dom": "^4.0.4",
      "css-loader": "^0.28.4",
      "extract-text-webpack-plugin": "^2.1.2",
      "firebase": "^4.1.3",
      "firebaseui": "^2.2.1",
      "jquery": "^3.2.1",
      "react": "^15.6.1",
      "react-dom": "^15.6.1",
      "react-redux": "^5.0.5",
      "react-router": "^4.1.1",
      "redux": "^3.7.1",
      "style-loader": "^0.18.2"
    }
  }
  </code></pre>
  
  <p>Project builds without any errors. But after an commit attempt I get previously described error.
  Unfortunately, it may be caused by my use of <code>npm install</code> in <code>node_modules/jquery</code> directory, that used this <a href="https://github.com/jquery/jquery/blob/master/package.json" rel="nofollow noreferrer">package</a>.</p>
  
  <p>I've tried to delete node_modules in my project and to reinstall them through <code>npm install</code> but error hadn't changed. What I'm supposed to do?</p>