You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
husky pre-commit failed - cannot find 'pretty-quick' when using cygwin #9278
A bad path(?) prevents me from commiting via github desktop, presumably because of my default shell being set to cygwin. This is a new error despite my shell being set to cygwin for years without issue.
Version & OS
Windows 10 (1909) & GH Desktop 2.3.1
Screenshots
Logs
the contents of the screenshot, from the logs:
2020-03-14T15:44:04.855Z - error: [ui] `git commit -F -` exited with an unexpected code: 1.
stderr:
husky > pre-commit (node v13.5.0)
/c/Users/<me>/Documents/GitHub/cannon-es/node_modules/.bin/pretty-quick: line 5: cygpath: command not found
internal/modules/cjs/loader.js:969
throw err;
^
Error: Cannot find module 'C:\pretty-quick\bin\pretty-quick.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:17)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
husky > pre-commit hook failed (add --no-verify to bypass)
Activity
sban2009 commentedon Mar 3, 2023
@stockhuman what was the solution?