从Intellij IDEA运行JHipster Gradle任务 [英] Running JHipster Gradle task from Intellij IDEA
问题描述
当我从Intellij IDEA运行Gradle时发生此错误..但是从控制台一切正常......有人知道为什么?
This error happens when I run with Gradle through from Intellij IDEA.. but from console everything works fine... someone knows why?
执行外部任务'run --stacktrace'...:compileJava UP-TO-DATE
:compileScala UP-TO -DATE:bower FAILED
Executing external task 'run --stacktrace'... :compileJava UP-TO-DATE :compileScala UP-TO-DATE :bower FAILED
org.gradle.api.tasks.TaskExecutionException:任务执行失败
':bower'。
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bower'.
引起:java.io.IOException:无法运行程序bower(在
目录中/ Users / eduardo / Development / projects / jhipster):error = 2,No
这样的文件或目录
Caused by: java.io.IOException: Cannot run program "bower" (in directory "/Users/eduardo/Development/projects/jhipster"): error=2, No such file or directory
推荐答案
我联系了JetBrains对此的支持。他们建议的一件事是从命令行运行IntelliJ,这对我有用:
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"
这篇关于从Intellij IDEA运行JHipster Gradle任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!