eclipse - 我不断得到 "env: node: No such file or directory"在 Eclipse 上运行 Grunt 作为 MacOS Yosemite 下的外部工具

标签 eclipse node.js macos gruntjs osx-yosemite

Eclipse (Luna) 显然正在启动 grunt 作为外部构建工具。但是,Eclipse 控制台一直显示“env: node: No such file or directory”消息并且 grunt 任务无法运行。

移动到项目目录后,我可以在命令行(Eclipse 外部)成功运行 grunt。

Node 安装程序确实将它放在/usr/local/bin/node 上,但显然 grunt 期望它位于其他地方。

建议?

最佳答案

如果你正在使用 Homebrew 试试

brew unlink node

然后

 brew link node

关于eclipse - 我不断得到 "env: node: No such file or directory"在 Eclipse 上运行 Grunt 作为 MacOS Yosemite 下的外部工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30630211/

相关文章:

java - 给定两棵树,如果它们结构相同,则返回 true 它们由具有相同值的节点以相同的方式排列组成

node.js - 如何在 React js 中进行 Soap 调用?

regex - 用 sed 剥离十六进制字节 - 不匹配

bash - OSX 恶意终端命令(冒号、括号、大括号、apersand 等)

javascript - 如何在 Next JS Application 中将 String 转换为 HTML 元素?

c++ - 如何在 C++ 中获取 Mac OS X 中主显示器的分辨率?

java - 基于 OSGi 的示例项目

eclipse - 使用 SBT 和 Scala IDE 添加和删除依赖项

java - 导入 javax.jnlp 库时出错

node.js - 什么是微服务架构中有效的通信方式