如何在Intellij中运行使用npm的gradle任务

时间:2018-10-01 17:22:14

标签: node.js gradle intellij-idea

我有一个项目,我使用gradle-node-plugin运行npm install。当我从命令行运行时,一切正常。当我从Intellij运行时,我得到...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':npmInstall'.
> A problem occurred starting process 'command 'npm''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s
2 actionable tasks: 2 executed
Cause: error=2, No such file or directory
1:17:15 PM: Task execution finished 'bootRun'.

似乎与Gradle守护程序的运行有关,因为有时IJ导致它在终端上被胶管连接,所以我必须先杀死它,然后它才能再次起作用。

0 个答案:

没有答案