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

hooks scripts stop working when yarn is update #4

Open
nkzawa opened this issue Jun 28, 2019 · 2 comments
Open

hooks scripts stop working when yarn is update #4

nkzawa opened this issue Jun 28, 2019 · 2 comments

Comments

@nkzawa
Copy link

nkzawa commented Jun 28, 2019

It looks yarn path is hardcoded so that when it's updated and removed by like brew, scripts stop working.
I think it's the same for node which the path is hardcoded.
Is there are an easy way to update the scripts?

@Qix-
Copy link
Collaborator

Qix- commented Jun 28, 2019

Not via a convenient command. I think you're good to remove everything under .git/hooks, clear your node modules and npm i again. Upon install, we evaluate where the package manager is telling us it lives. If that path changes, you'll have to uninstall and reinstall.

Might work by doing npm uninstall @zeit/git-hooks; npm install --save-dev @zeit-hooks again. I'm not sure if npm has a "re-install" command that does just this.

@nkzawa
Copy link
Author

nkzawa commented Jun 29, 2019

👍 it seems npm uninstall @zeit/git-hooks; npm install --save-dev @zeit-hooks works. (tested with yarn).

I wonder if we can just use node and (npm or yarn) in path. so that you don't need to concern this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants