-
Notifications
You must be signed in to change notification settings - Fork 524
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
Add warning when postinstall fails (NPMv2 issue) #98
Comments
@ryan-roemer has a strawman solution for this:
This will take care of the problem with |
Potential compromise: Can we prompt user to upgrade to |
That's potentially a lot of tooling/work that needs to (1) be Windows / Mac compatible and (2) can't rely on any npm installs to have succeeded because of the very nature of the problem. I think with the |
@coopy -- I take that back. Amazingly this works on Mac and Windows (tried XP): cd lib || builder run npm:postinstall || echo 'POSTINSTALL FAILED: If using npm v2, please upgrade to npm v3. See bug https://github.com/FormidableLabs/builder/issues/35' && exit 1 But, you'll need to update all the Victory projects to have this exact string (it can't be abstracted to builder, because in our failure scenario builder / archetype didn't install 😉 ) |
Awesome, thanks for testing that @ryan-roemer! |
can we go forward and add this warning to all the victory components? |
Yes.
|
warnings are added now, so closing this. |
Consider removing
postinstall
step in order to open upnpm
2 compatibility again.#95 removed Node versions other than
5
from the Travis run, in order to ensurenpm
v3 is used in the install step. This is because of FormidableLabs/builder#35.This has consequences – _not_ doing postinstall means you must:
git
dependencies / installations; ORlib
to sourceThere is a lot more detail in FormidableLabs/formidable-react-component-boilerplate#56.
The text was updated successfully, but these errors were encountered: