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

[Bug]: TTY initialization failed: uv_tty_init returned EINVAL (invalid argument) #202

Open
imperugo opened this issue Jun 9, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@imperugo
Copy link

imperugo commented Jun 9, 2023

Opencommit Version

2.2.10

Node Version

16.16.0

NPM Version

8.11.0

What OS are you seeing the problem on?

Mac

What happened?

Hi,
I've just added the prepare-commit-msg hook using husky in order to run oco --no-verify.

unfortunately it doesn't seem to work, I'm getting this error

❯ git commit -m "test"
→ No staged files match any configured task.
┌  open-commit
│
◇  2 staged files:
  .github/workflows/opencommit.yml
  .husky/prepare-commit-msg
│
◇  📝 Commit message generated
│
└  Commit message:
——————————————————
chore: remove OpenCommit Github Action and add Husky prepare-commit-msg hook to run OpenCommit CLI before commit message is created
│
◇  📝 Commit message generated
│
└  ✖ TTY initialization failed: uv_tty_init returned EINVAL (invalid argument)

husky - prepare-commit-msg hook exited with code 1 (error)

Do you have any hint?

Expected Behavior

The it works

Current Behavior

Getting error

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

@imperugo imperugo added the bug Something isn't working label Jun 9, 2023
@github-actions
Copy link

Stale issue message

@stevemao
Copy link

Still a problem

@maxbec
Copy link

maxbec commented Dec 16, 2023

Any ideas on this? I have the same problem.

@scottdotau
Copy link

Are you guys both on Windows? If so try this: typicode/husky#850 (comment)

I'm getting this issue in Linux though :(

@di-sukharev
Copy link
Owner

what are the reproduction steps? how do you add a pre-commit-msg hook via husky? could you share the simplest way for me to reproduce it pls

@abidssi
Copy link

abidssi commented May 2, 2024

I am getting this error, any help would highly be appreciated.
Screenshot from 2024-05-02 16-38-03

@testeducative
Copy link

I am getting this error, any help would highly be appreciated. Screenshot from 2024-05-02 16-38-03

Try using pnpm i instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants