-
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: postinstall/install script not being run on dependencies #1872
Comments
kevinzwhuang
changed the title
custom install script not being run on dependencies
Bug: custom install script not being run on dependencies
Nov 15, 2016
kevinzwhuang
changed the title
Bug: custom install script not being run on dependencies
Bug: postinstall/install script not being run on dependencies
Nov 15, 2016
This might be a dupe of #1852 |
16 tasks
Yes, duplicate of #1852. |
Looks like #1852 is different |
So I am trying to repro on master branch:
Everything seems in place. I think binding.node is downloaded instead of being rebuilt. |
This is a duplicate of #1832, let's continue discussion there please. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
This is a bug/regression - has been present since 0.17.0.
What is the current behavior?
Postinstall/Install scripts for dependencies are not being run. As a result, libraries that depend on an extra post install step will fail.
For example, I installed
node-sass
on my project with yarn. Trying to usenode-sass
will result in this stack trace:This can be cleared by going to my node_modules folder and running the install script manually with:
node node_modules/node_sass/scripts/install.js
From : https://github.com/sass/node-sass/blob/master/package.json#L31
There's been a similar issue reported at node-sass: sass/node-sass#1804
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
The
install
script should be run automatically for dependencies once installed by yarn.Yarn nightly - v0.18.0-20161115.2218
OS: Ubuntu 16.04.1 LTS + 4.8.7-040807-generic Linux Kernel
Also reproduced on OS X El Capitan
Node: v6.9.1
The text was updated successfully, but these errors were encountered: