Skip to content
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

java.io.IOException: Cannot run program "yarn" (in directory "../frontend"): error=2 #48

Open
dhanugupta opened this issue May 31, 2018 · 3 comments

Comments

@dhanugupta
Copy link

Is it known issue??
./gradlew bootRun

2018-05-30 22:09:45.922 ERROR 25447 --- [ restartedMain] org.zeroturnaround.exec.ProcessExecutor : Could not start process:

java.io.IOException: Cannot run program "yarn" (in directory "../frontend"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[na:1.8.0_171]
at org.zeroturnaround.exec.ProcessExecutor.invokeStart(ProcessExecutor.java:977) [zt-exec-1.9.jar:na]
at org.zeroturnaround.exec.ProcessExecutor.startInternal(ProcessExecutor.java:950) [zt-exec-1.9.jar:na]
at org.zeroturnaround.exec.ProcessExecutor.execute(ProcessExecutor.java:890) [zt-exec-1.9.jar:na]
at react.dev.YarnRunner.yarnCheck(YarnRunner.java:67) [main/:na]
at react.dev.YarnRunner.startFrontend(YarnRunner.java:55) [main/:na]
at react.dev.YarnRunner.run(YarnRunner.java:39) [main/:na]

@dhanugupta
Copy link
Author

got it resolved by installing yarn locally on mac..

@dhanugupta
Copy link
Author

looks like this issue coming up when i am try to run spring boot from eclipse IDE.. any solution to fix it??

@dhanugupta dhanugupta reopened this May 31, 2018
@shubhamp861
Copy link

May be a problem with the package of yarn, try this command in cmd = "npm install -g yarn"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants