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

Command Failed: grunt when running with pre-commit hook #71

Open
bryantAXS opened this issue Jan 3, 2018 · 1 comment
Open

Command Failed: grunt when running with pre-commit hook #71

bryantAXS opened this issue Jan 3, 2018 · 1 comment
Assignees
Labels

Comments

@bryantAXS
Copy link

When I submit a commit, the hook triggers but displays this error:

{ Error: Command failed: grunt

    at ChildProcess.exithandler (child_process.js:272:12)
    at ChildProcess.emit (events.js:159:13)
    at maybeClose (internal/child_process.js:943:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) killed: false, code: 3, signal: null, cmd: 'grunt' }

My config is as follows:

githooks: {
      all: {
        'pre-commit': [
          'uglify',
          'cssmin',
          'shell:addfiles'
        ]
      }
    },

I have grunt installed locally and globally. Any thoughts? Thank you!

@franz-josef-kaiser
Copy link
Member

Have you tried removing two of the three commands in your pre-commit hook? That would make it easier to track down the faulty part. Please do some more debugging by removing and adding back in things to narrow the range of possible causes. From the error message above, it is impossible to tell where the bug is burried.

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

No branches or pull requests

2 participants