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
install-node-and-yarn causes NullPointerException for invalid yarn version #532
Comments
(I am not a contributor, so maybe my advice is wrong) |
@styner9 thanks for your answer. I'm well aware now that the |
@tf I totally agree with you! I expect that it will improve soon. |
If you have time to send a PR that adds a better error message, feel free, I would welcome it :-) |
I just had the same problem as the OP. The problem for me was not the error message but the fact that it is not displayed. Instead, a NullPointerException is thrown:
This was because in MojoUtils.java:27 e.getCause() returned null. This apparently only happens on the first build (neither node nor node_modules are present). I'll send you a PR. |
I forgot the leading
v
in the yarn version:This causes a
NullPointerException
:https://gist.github.com/tf/807716d2d18123da90d6d5e6aaf17d69
If
yarn
already has been installed, the version is detected correctly. It would be nice, if the error message stated that the specified version cannot be found.Plugin Version 1.3
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: