Git: husky > npm run -s precommit (node v0.10.26)
what's wrong with me
the detail:
/node_modules/lint-staged/index.js:5
const pkg = require('./package.json')
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
husky > pre-commit hook failed (add --no-verify to bypass)
git config --get-all user.name
git config --get-all user.email
You need Node.js >= 6.5