Skip to content

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

@bryantAXS

Description

@bryantAXS

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!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions