-
Notifications
You must be signed in to change notification settings - Fork 3
-
Notifications
You must be signed in to change notification settings - Fork 3
Add phantomjs as a dependency #9
Comments
Initially this was introduced to prevent undesired installs on unsupported systems in Now that engines are opt-in, there are a few ways to approach this (not necessarily all the ways):
I am currently busy at the moment but will take a look by the end of the next weekend. At this point, I am leaning towards moving from |
Thanks for the in-depth response! I understand the desire to reduce weight by depending on Phantom, but i'd like to continue to advocate for including it as a dependency the following reasons:
Functionally, this would mean using the path from Regardless, I think you are spot on in wanting to find a way to exit successfully from an install hook. I'll see if I can do some investigation into this on my end as well. |
It looks like https://github.com/twolfson/phantomjssmith/tree/0.6.0#requirements Thanks for the bug report! |
For what it's worth, if anyone still wants them to be bundled, then we can create a module which wraps the 2 together. However, I want to make it easier to opt-in to downloading additional content than making it difficult to opt-out. |
@twolfson awesome. Thanks so much for looking into this. |
Currently
npm install
fails for any project that includes phantomjssmith as a dependency when phantom isn't available globally (due to thepreinstall
hook). Since you already usewhich
it should pick up and use a local phantom install, and it makes sense to add this as a dependency of the project.I'll happily PR this change if it's welcome. Also, forgive me if i've missed something crucial here :)
The text was updated successfully, but these errors were encountered: