PhpStorm无法列出咕噜声任务 [英] PhpStorm fail to list grunt tasks

查看:129
本文介绍了PhpStorm无法列出咕噜声任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在一直在使用PhpStorm的grunt task runner。但是在更新到PhpStorm到版本10后,它停止工作。我收到了错误消息;

I've been using PhpStorm's grunt task runner for a while now. But after a update to PhpStorm to version 10 it stopped working. I'm getting and error;

Failed to list grunt tasks in /js/gruntfile.js: process finished with exit code 3 (a non-zero exit code means an error)
Running tasks: /usr/local/lib/node_modules/grunt-cli/bin/grunt, _intellij_grunt_tasks_fetcher
Warning: Task "/usr/local/lib/node_modules/grunt-cli/bin/grunt" not found. Use --force to continue

Aborted due to warnings.

Process finished with exit code 3

即使它说 / usr / local / lib / node_modules / grunt-cli / bin / grunt not found,文件实际存在。然后我向777申请了许可权问题。但它仍然给我同样的错误。

Even though it says "/usr/local/lib/node_modules/grunt-cli/bin/grunt not found", file is actually there. Then I made the permission to 777 to see if it is permission issue. But it still giving me the same error.

我的Grunt设置说,

My Grunt settings says,

但是相同的Grunt文件在CLI模式下完美运行,这正是我目前使用的。但我更喜欢使用PhpStorm grunt任务运行器,因为通过一个IDE管理我所有的开发工作会更容易。

But same Grunt file works perfectly on CLI mode, which is what I'm using at the moment. But I prefer to use PhpStorm grunt task runner as it'll be easier for me to manage all my dev work through one IDE.

我尝试了几件事,文档。

I tried few things, and read few documents. Nothing about this particular scenario.

推荐答案

基于您的Grunt Settings对话框的屏幕截图:您确实将路径指向您的咕噜声在要求通往节点解释器的路径中。

Based on screenshot of your "Grunt Settings" dialog: you did put the path to your grunt in the field that asks for a path to Node Interpreter.

提供实际节点可执行文件的路径应该为您解决问题。 p>




Providing path to the actual node executable should fix the issue for you.


即使它显示/ usr / local / lib / node_modules / grunt-cli / bin / grunt not found,文件确实存在。

Even though it says "/usr/local/lib/node_modules/grunt-cli/bin/grunt not found", file is actually there.

没有。

如果您再次阅读,实际上会显示任务 xxx找到了点头。这表明最有可能你使用错误的参数(错误的值或错误的顺序)..或参数是正确的,但实际的程序是错误的。

If you read it again it actually says "Task xxx nod found". This suggests that most likely you either using wrong parameters (wrong values or wrong order) .. or parameters are right but actual program is wrong.

这篇关于PhpStorm无法列出咕噜声任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆