-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: issue with postinstall scripts in git-hooks package #614
Comments
+1 |
@glebmachine Please use the "add reaction" icon at the top right of the bug description to add your +1 (which should be written 👍) - that way it will be counted on the list of bugs when you sort them by reaction counts, e.g. https://github.com/yarnpkg/yarn/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc |
@rjmunro got it, thanks) |
After upgrading yarn to 0.16.0, I now get the following output:
[Edit: it's the same error, but it has hidden the traceback and given me information about the arguments is tried to use etc.] |
This error was before, nothing changed)
|
Still experience error: yarn add git-hooks
yarn add v0.16.1
warning [email protected]: "dependencies" has dependency "angular-slick-carousel" with range "^3.1.7" that collides with a dependency in "devDependencies" of the same name with version "3.1.7"
warning [email protected]: "dependencies" has dependency "scrollmagic" with range "^2.0.5" that collides with a dependency in "devDependencies" of the same name with version "2.0.5"
warning [email protected]: "dependencies" has dependency "slick-carousel" with range "^1.6.0" that collides with a dependency in "devDependencies" of the same name with version "1.6.0"
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
⠁
⠁
⠁
⠁
error ..../node_modules/git-hooks: Command failed.
Exit code: 127
Command: sh
Arguments: -c git-hooks --install
Directory: ..../node_modules/git-hooks
Output:
sh: git-hooks: command not found
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
|
Fixed via #1210. |
Using the following package.json:
and running
yarn
, I get:I guess yarn is running git-hook's postinstall too early in the process, or without
node_modules/.bin
added to the PATH environment variable.On second run, I don't get the error, but the command doesn't seem to get executed. I have to run
node_modules/.bin/git-hooks
manually.The text was updated successfully, but these errors were encountered: