Skip to content

Commit 100ad1e

Browse files
Nick Woodwardtypicode
Nick Woodward
authored andcommitted
fix: add support for windows gui clients (#69)
1 parent 2465137 commit 100ad1e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ module.exports = {
9090
// Test if nvm is in PATH and load version specified by .nvmrc
9191
'command -v nvm >/dev/null 2>&1 && [ -f .nvmrc ] && nvm use'
9292
])
93+
} else {
94+
// Add
95+
// Node standard installation path /c/Program Files/nodejs
96+
// for GUI apps
97+
// https://github.com/typicode/husky/issues/49
98+
arr = arr.concat([
99+
'export PATH="$PATH:/c/Program Files/nodejs"'
100+
])
93101
}
94102

95103
// Can't find npm message

0 commit comments

Comments
 (0)