Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util.getSystemErrorName is not a function #668

Closed
fatlinesofcode opened this issue Jul 26, 2019 · 4 comments
Closed

util.getSystemErrorName is not a function #668

fatlinesofcode opened this issue Jul 26, 2019 · 4 comments

Comments

@fatlinesofcode
Copy link

we the following error when using the 9.2.1 (with or without husky)

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/04/z9dyq6sj2292n05jz5bhkmd00000gp/T/SourceTreeTemp.yhZcTW 
Info: can't find node in PATH, trying to find a node binary on your system
husky > pre-commit (node v9.5.0)
Stashing changes... [started]
Stashing changes... [skipped]
→ No partially staged files found...
Running tasks... [started]
Running tasks for *.{js,vue} [started]
eslint --fix [started]
eslint --fix [failed]
→ util.getSystemErrorName is not a function
Running tasks for *.{js,vue} [failed]
→ util.getSystemErrorName is not a function
Running tasks... [failed]
util.getSystemErrorName is not a function
husky > pre-commit hook failed (add --no-verify to bypass)
Completed with errors, see above

Rolled back to 8.2.1 and all works fine.

@iiroj
Copy link
Member

iiroj commented Jul 26, 2019

Please see issue sindresorhus/execa#320, it seems util.getSystemErrorName was included in node v8.12.0, which is the lowest version required by lint-staged.

@fatlinesofcode
Copy link
Author

thanks for the reply but im on node 9.5

phils-macbook-pro-2:clients phil$ node -v
v9.5.0

@iiroj
Copy link
Member

iiroj commented Jul 26, 2019

Maybe that's it. In the linked issue, it also says that on v9 it is included in v9.7.0.

@brettz9
Copy link

brettz9 commented Sep 18, 2019

See typicode/husky#103 (comment)

@iiroj iiroj closed this as completed Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants