node.js - 如何在 Intellij 中运行使用 npm 的 gradle 任务
问题描述
我有一个项目,我使用 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 Daemon 有关,因为有时 IJ 会导致它在终端上被冲洗,所以我必须在它再次工作之前将其杀死。
解决方案
推荐阅读
- python - 将 django 应用程序从 localhost 应用程序部署到 Web 应用程序
- laravel-5 - 为什么 DB::select 工作但 DB::table 不起作用?
- java - 为 servlet [dispatcherServlet] 提供错误 Servlet.service() 的自定义异常处理
- node.js - AWS Lambda 函数不会插入 Dynamo DB
- c - 为什么这个while条件没有捕捉到EOF?我得到分段错误
- php - 如何使用输入表单组合数组
- c++ - 如何将浮点算法转换为定点?
- php - 如何在 Yii2 项目中使用rectorphp/rector?
- javascript - 通过 Ajax 将数据发送到 .NET 中的处理程序。XML 解析错误:找不到根元素
- omnet++ - 在 initialize() 中设置新的门连接