Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miss script but get nothing error message #133

Open
nightInSummer opened this issue Jun 8, 2018 · 1 comment
Open

miss script but get nothing error message #133

nightInSummer opened this issue Jun 8, 2018 · 1 comment

Comments

@nightInSummer
Copy link

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
Copy link

fildon commented Jun 2, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants