kazazor / git-pre-commit

A pre-commit hook that ignores all the unstagged changes while performing the pre-commit command you wrote (Using Shell, Gulp, Grunt etc..)
https://www.npmjs.com/package/git-pre-commit
MIT License
18 stars 5 forks source link

Check that it works using cmd - on Windows #3

Open kazazor opened 8 years ago

kazazor commented 8 years ago

This also effects #4

felquis commented 4 years ago

I'm using PowerShell, and once npm install I get this error:


> git-pre-commit@2.1.4 postinstall C:\Users\username\workplace\project\node_modules\git-pre-commit
> gulp hooks:install

fs.js:39
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:39:5
    at req_ (C:\Users\username\workplace\project\node_modules\natives\index.js:143:24)
    at Object.req [as require] (C:\Users\username\workplace\project\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (C:\Users\username\workplace\project\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)

node -v 14.x