-
Notifications
You must be signed in to change notification settings - Fork 877
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
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn #740
Comments
Bumping this issue. Using install-node-and-yarn installs yarn in .../node/yarn/yarn1.13.0/bin/yarn but the plugin is looking in .../node/yarn/dist/bin/yarn |
Does it work with an earlier version if yarn? Maybe they changed the installation directory? |
Sorry for the late reply. They must have changed the directory name but I haven't tried downgrading the version of Yarn since we're coding a new project in Angular and rely on the latest version to avoid any issues between the latest Angular and old Yarn. Not sure if you can use a wildcard of some kind to get the install directory, or maybe get the version installed from Yarn itself, but I'm guessing that this plugin will need to support the new directory format to continue working. Let me know if you need any other information. Thanks! |
Yup, I guess it's easier to just drop support for older versions of yarn, and change the directory layout. |
confirming the bug: Do you need help in resolving this issue? |
sure, just make a PR. |
is it fixed yet? I am still facing the issue with yarn version 1.17.3 |
I think #845 will help |
Faced the same issue, how do I resolve it |
@pingsutw I believe if you rename the yarn directory after the first install, it will work. For example, Yarn installs here .../node/yarn/yarn1.13.0/bin/yarn. After you get the error the first time, rename "yarn1.13.0" (or whatever your version is) to .../node/yarn/yarn/bin/yarn. Run the build again and it should detect that yarn is already installed and keep going. Other that that, you can downgrade to a much older version of yarn |
After tried these commands, it works for me. |
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (gulp process-resources) on project jira-gadgets-plugin: Failed to run task: 'yarn run process-resources --module jira-gadgets-plugin --skip-minification=false --production=false' failed. java.io.IOException: Cannot run program "/home/alex/jira/jira-gadgets-plugin/target/node/yarn/dist/bin/yarn" (in directory "/home/alex/jira/jira-gadgets-plugin"): error=2, No such file or directory -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (gulp process-resources) on project jira-gadgets-plugin: Failed to run task
OS: Ubuntu 18.04
Maven-3.2.5
java version "9.0.4"
The text was updated successfully, but these errors were encountered: