-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Should be using prepare rather than postinstall step for website dependency install #2165
Comments
Thanks for the report, that's definitely bad and ugly bug. We will sort it out soon. |
Or you will, that's also an option :D |
+ See mobxjs/mobx#2165 which is a blocker for allowing it to go to 5.14.1
What about npm users, is using yarn requirement now? |
No, these lifecycle scripts work the same across yarn & npm. Point is that, |
Running on a system without yarn installed:
|
* Fixes #2165 - switches postinstall to prepare * Bumps to v5.14.2 and updates changelog * Removes version bump
Published 5.14.2 ... note there is no 4.14.2 as MobX 4 wasn't affected. |
@vnesek yarn has been required for mobx development for a long time now I think. It is not required to consume mobx as a dependency though. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions. |
In the latest Mobx 5.14.1, Installing mobx as a dependency is resulting in the
postinstall
script executing which is trying to install the dependencies of the website folder which is not distributed in the package resulting in errors like this during dependency installation:Reproduction:
Easy fix is to change
postinstall
toprepare
.prepare
will execute only on local installation, and not during installation as a dependency.The text was updated successfully, but these errors were encountered: