miss script but get nothing error message
nightInSummer opened this issue · 1 comments
nightInSummer commented
package.json like this:
"scripts": {
"start": "",
"dev": "rm -rf public && ./node_modules/.bin/webpack --progress --color -w -d",
"server": "node server.js"
},
"pre-commit": [
"lint"
],
It caused my git cannot commit everything but no error information was obtained.
Why not print some error message to the console?
fildon commented
It's failing because you don't have a 'lint' script. Each entry in your 'pre-commit' array should match an entry in your scripts object. As is it can't find a 'lint' script so it fails.