-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
don't output npm default error message #47
Conversation
So annoying
Thank you for the PR and the feedback. It's kind of hard to decide what should be the best by default. So in the end, husky output is the same as But you can configure npm to be more silent: project $ cat .npmrc
loglevel=silent |
Hey @typicode, I have a similar problem with npm flags in jzaefferer/commitplease#60 My goal is to pass the Husky uses bash scripts inside
where
In my opinion, inside the bash script they are supposed to become:
Instead the hook fails with the messages (the number of dashes differs):
It works silently if I put
It also works if I run the following in console:
Any hints on how I could debug that? |
@all3fox i dont get your intention, but maybe you can use |
@iamstarkov thank you for the hint, this is what I tried:
None of the above pass the
So, I am still looking for a way to pass the Update: I have also tried these with no luck:
|
you can try to pipe all the input to /dev/null, |
also you dont need to point to node_modules explicitly in you npm scripts, npm is dynamically updating |
Piping all the output to
So, it does the opposite of what I would like to achieve: instead of hiding the output of
thank you for that, I read this and this sections of the manual to make npm put a commitplease script under However, I still did not figure out a way to pass the Update: and this is what I actually want, the result of |
So annoying