Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

This error happens when I run with Gradle through from Intellij IDEA.. but from console everything works fine... someone knows why?

Executing external task 'run --stacktrace'... :compileJava UP-TO-DATE :compileScala UP-TO-DATE :bower FAILED

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bower'.

Caused by: java.io.IOException: Cannot run program "bower" (in directory "/Users/eduardo/Development/projects/jhipster"): error=2, No such file or directory

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.3k views
Welcome To Ask or Share your Answers For Others

1 Answer

I contacted JetBrains support about this. The one thing they suggested was running IntelliJ from the command line, which is working for me:

open -a "/Applications/IntelliJ IDEA 15.app"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...