-
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
postinstall hook doesn't appear to be run #721
Comments
I noticed this comment from TC that may shed some light?
-- Source Perhaps |
It's handy in few other cases as well, e.g. on heroku it's a recommended way to customize build process https://devcenter.heroku.com/articles/nodejs-support#customizing-the-build-process |
This is strange, because in my experience, I found that the postinstall script was run for a package I was installing, but it didn't work for some reason, which I have documented in #614. |
@rjmunro I also see the |
@shiftkey That sounds exactly backwards if the intention is to prevent third party code running on install unnecessarily. |
Looks the same issue here: #614 |
Fixed via #800. |
Still reproducible with Angular 2 Quickstart tutorial as described here: #818 |
Does post install work or not? |
Do you want to request a feature or report a bug?
Not sure if its a feature or a bug, but I was expecting my
postinstall
hook to run afteryarn
was executed and it did not.What is the current behavior?
yarn
installs dependencies but does not runpostinstall
hook in thepackage.json
file.If the current behavior is a bug, please provide the steps to reproduce.
Sample
package.json
:Run
yarn
. Do not seehi
echoed.What is the expected behavior?
Node 6.7.0 and Yarn 0.15.1 and macOS 10.12
Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: