Add windows compatibility to npx simple-git-hooks
when configured by .js
file
#38
Labels
question
Further information is requested
When setting the configuration from
js
file (simple-git-hooks.js
or.simple-git-hooks.js
)the
npx simple-git-hooks
command executed on Windows 10 returns an error:The problem happens because for some reason Windows might use internal JS interpreter instead of node. This internal interpreter does not know what
module
is, thus throwing an error.--
Possible workaround for now is to use configuration from
package.json
orsimple-git-hooks.json
files.Also changing the default interpreter might help
The text was updated successfully, but these errors were encountered: