Node.js – I keep getting “env: node: No such file or directory” running Grunt on Eclipse as an external tool under MacOS Yosemite

eclipsegruntjsmacosnode.jsosx-yosemite

Eclipse (Luna) is clearly launching grunt as the external build tool. However, the Eclipse console keeps showing the "env: node: No such file or directory" message and the grunt tasks do not get to run.

I can successfully run grunt on the command line (outside Eclipse) after moving to the project directory.

The node installer did place it on /usr/local/bin/node but apparently grunt is expecting it somewhere else.

Suggestions?

Best Solution

if you are using Homebrew try

brew unlink node

then

 brew link node